From: Yang Li Date: Thu, 9 Jun 2022 05:55:32 +0000 (+0800) Subject: spi: fix platform_no_drv_owner.cocci warning X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a4f26ba2608c9ff736a9ad1348aa8078f0b03f81;p=linux.git spi: fix platform_no_drv_owner.cocci warning 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 Signed-off-by: Yang Li Link: https://lore.kernel.org/r/20220609055533.95866-1-yang.lee@linux.alibaba.com Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-microchip-core.c b/drivers/spi/spi-microchip-core.c index 5b2aee30fa04f..3bd285dd49649 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, };