iio: magn: ak8974: remove .owner field for driver
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 26 Aug 2016 14:32:29 +0000 (14:32 +0000)
committerJonathan Cameron <jic23@kernel.org>
Mon, 29 Aug 2016 19:12:10 +0000 (20:12 +0100)
Remove .owner field if calls are used which set it automatically.

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

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/magnetometer/ak8974.c

index 12bd17b4cf58455b6c93fdfa35521eb2dee41c63..217353145676306cd23e3ae72ef51ac774416871 100644 (file)
@@ -845,7 +845,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),
        },