[PATCH -next 2/2] spi: fix platform_no_drv_owner.cocci warning
Yang Li
yang.lee at linux.alibaba.com
Wed Jun 8 22:55:32 PDT 2022
Remove .owner field if calls are used which set it automatically.
Eliminate the following coccicheck warning:
./drivers/spi/spi-microchip-core.c:624:3-8: No need to set .owner here.
The core will do it.
Reported-by: Abaci Robot <abaci at linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee at linux.alibaba.com>
---
drivers/spi/spi-microchip-core.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c
index 5b2aee30fa04..3bd285dd4964 100644
--- a/drivers/spi/spi-microchip-core.c
+++ b/drivers/spi/spi-microchip-core.c
@@ -621,7 +621,6 @@ static struct platform_driver mchp_corespi_driver = {
.name = "microchip-corespi",
.pm = MICROCHIP_SPI_PM_OPS,
.of_match_table = of_match_ptr(mchp_corespi_dt_ids),
- .owner = THIS_MODULE,
},
.remove = mchp_corespi_remove,
};
--
2.20.1.7.g153144c
More information about the linux-riscv
mailing list