Skip to contentSkip to conversation

iio: magn: ak8974: remove .owner field for driver

PATCH Applied Wei Yongjun 3 participants 3 messages Aug 26, 2016 – Aug 29, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: magn: ak8974: remove .owner field for driver

From: Wei Yongjun <[email protected]>

Remove .owner field if calls are used which set it automatically.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

---
 drivers/iio/magnetometer/ak8974.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/magnetometer/ak8974.c +0 -1
index e70e4e2..100b288 100644
@@ -847,7 +847,6 @@ MODULE_DEVICE_TABLE(of, ak8974_of_match);
 static struct i2c_driver ak8974_driver = {
 	.driver	 = {
 		.name	= "ak8974",
-		.owner	= THIS_MODULE,
 		.pm = &ak8974_dev_pm_ops,
 		.of_match_table = of_match_ptr(ak8974_of_match),
 	},
maintainer Applied
#2 lore raw
Quoted 11 lines · Linus Walleij
Quoted 7 lines · Wei Yongjun

From: Wei Yongjun <[email protected]>

Remove .owner field if calls are used which set it automatically.

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Applied.

Thanks,

Jonathan

Quoted 8 lines

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html