nfc: st95hf: drop driver owner assignment
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Wed, 27 Mar 2024 17:48:10 +0000 (18:48 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 29 Mar 2024 19:32:51 +0000 (12:32 -0700)
Core in spi_register_driver() already sets the .owner, so driver
does not need to.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240327174810.519676-4-krzysztof.kozlowski@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/nfc/st95hf/core.c

index 067e0ec31d2dc100a655a81e5d2d732b41dd5484..ffe5b4eab457fbc849e1b24cd7bc16745d441c97 100644 (file)
@@ -1237,7 +1237,6 @@ static void st95hf_remove(struct spi_device *nfc_spi_dev)
 static struct spi_driver st95hf_driver = {
        .driver = {
                .name = "st95hf",
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(st95hf_spi_of_match),
        },
        .id_table = st95hf_id,