[PATCH -next] i2c: mt7621: Fix platform_no_drv_owner.cocci warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Signed-off-by: YueHaibing <yuehaibing@xxxxxxxxxx>
---
 drivers/i2c/busses/i2c-mt7621.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/i2c/busses/i2c-mt7621.c b/drivers/i2c/busses/i2c-mt7621.c
index 2a1cb414766d..62df8379bc89 100644
--- a/drivers/i2c/busses/i2c-mt7621.c
+++ b/drivers/i2c/busses/i2c-mt7621.c
@@ -343,7 +343,6 @@ static struct platform_driver mtk_i2c_driver = {
 	.probe		= mtk_i2c_probe,
 	.remove		= mtk_i2c_remove,
 	.driver		= {
-		.owner	= THIS_MODULE,
 		.name	= "i2c-mt7621",
 		.of_match_table = i2c_mtk_dt_ids,
 	},








[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux