diff options
author | Yang Li <yang.lee@linux.alibaba.com> | 2022-06-09 08:55:32 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-06-09 13:57:48 +0300 |
commit | a4f26ba2608c9ff736a9ad1348aa8078f0b03f81 (patch) | |
tree | a5fc0342449bac6174508699c0cf74b958b21b6b /drivers/spi/spi-microchip-core.c | |
parent | 5dfac65b621733e69b789150a0a3f1bf2f9095a3 (diff) | |
download | linux-a4f26ba2608c9ff736a9ad1348aa8078f0b03f81.tar.xz |
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>
Diffstat (limited to 'drivers/spi/spi-microchip-core.c')
-rw-r--r-- | drivers/spi/spi-microchip-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
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, }; |