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 <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Link: https://lore.kernel.org/r/20220609055533.95866-1-yang.lee@linux.alibaba.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Yang Li 2022-06-09 13:55:32 +08:00 committed by Mark Brown
parent 5dfac65b62
commit a4f26ba260
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -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,
};