All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next 2/2] spi: fix platform_no_drv_owner.cocci warning
@ 2022-06-09  5:55 ` Yang Li
  0 siblings, 0 replies; 10+ messages in thread
From: Yang Li @ 2022-06-09  5:55 UTC (permalink / raw)
  To: broonie
  Cc: conor.dooley, lewis.hanly, linux-riscv, linux-spi, linux-kernel,
	Yang Li, Abaci Robot

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>
---
 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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-06-09 15:15 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-09  5:55 [PATCH -next 2/2] spi: fix platform_no_drv_owner.cocci warning Yang Li
2022-06-09  5:55 ` Yang Li
2022-06-09  5:55 ` [PATCH -next 1/2] spi: Remove unnecessary print function dev_err() Yang Li
2022-06-09  5:55   ` Yang Li
2022-06-09 10:55   ` Mark Brown
2022-06-09 10:55     ` Mark Brown
2022-06-09 15:15     ` Conor.Dooley
2022-06-09 15:15       ` Conor.Dooley
2022-06-09 14:13   ` (subset) " Mark Brown
2022-06-09 14:13     ` Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.