Messages in this thread Patch in this message | | | From | Krzysztof Kozlowski <> | Subject | [PATCH] staging: pi433: drop driver owner assignment | Date | Wed, 27 Mar 2024 18:47:24 +0100 |
| |
Core in spi_register_driver() already sets the .owner, so driver does not need to.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> --- drivers/staging/pi433/pi433_if.c | 1 - 1 file changed, 1 deletion(-)
diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c index b6c4917d515e..c6498f518e91 100644 --- a/drivers/staging/pi433/pi433_if.c +++ b/drivers/staging/pi433/pi433_if.c @@ -1366,7 +1366,6 @@ MODULE_DEVICE_TABLE(of, pi433_dt_ids); static struct spi_driver pi433_spi_driver = { .driver = { .name = "pi433", - .owner = THIS_MODULE, .of_match_table = of_match_ptr(pi433_dt_ids), }, .probe = pi433_probe, -- 2.34.1
| |