]> git.baikalelectronics.ru Git - kernel.git/commit
spi: fix platform_no_drv_owner.cocci warning
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 9 Jun 2022 05:55:32 +0000 (13:55 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jun 2022 10:57:48 +0000 (11:57 +0100)
commit2ae97bb0ee0c1831a4252ba8007cc434b20a0152
treea5fc0342449bac6174508699c0cf74b958b21b6b
parenta7cae48393a3be5f7e2e2b99fe9d6c943c32907c
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>
drivers/spi/spi-microchip-core.c