rtc: Drop owner assignment from i2c_driver
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Fri, 10 Jul 2015 06:39:50 +0000 (15:39 +0900)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Sat, 5 Sep 2015 11:19:06 +0000 (13:19 +0200)
i2c_driver does not need to set an owner because i2c_register_driver()
will set it.

Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
15 files changed:
drivers/rtc/rtc-ab-b5ze-s3.c
drivers/rtc/rtc-bq32k.c
drivers/rtc/rtc-ds1307.c
drivers/rtc/rtc-ds1374.c
drivers/rtc/rtc-ds3232.c
drivers/rtc/rtc-fm3130.c
drivers/rtc/rtc-hym8563.c
drivers/rtc/rtc-isl12057.c
drivers/rtc/rtc-pcf2127.c
drivers/rtc/rtc-pcf85063.c
drivers/rtc/rtc-pcf8523.c
drivers/rtc/rtc-pcf8563.c
drivers/rtc/rtc-pcf8583.c
drivers/rtc/rtc-rx8025.c
drivers/rtc/rtc-rx8581.c

index b5cbc1bf5a3e5fb50efd2dabc897598cef5365e6..0fb1d767afa9e21659d9dc61b088d56a7ab21bdf 100644 (file)
@@ -1020,7 +1020,6 @@ MODULE_DEVICE_TABLE(i2c, abb5zes3_id);
 static struct i2c_driver abb5zes3_driver = {
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .pm = &abb5zes3_rtc_pm_ops,
                .of_match_table = of_match_ptr(abb5zes3_dt_match),
        },
index 409de9f1b604c62e51742eb3ca71ffcab25cc087..0299988b4f136812bad0e35c4943826608d5a114 100644 (file)
@@ -234,7 +234,6 @@ MODULE_DEVICE_TABLE(i2c, bq32k_id);
 static struct i2c_driver bq32k_driver = {
        .driver = {
                .name   = "bq32k",
-               .owner  = THIS_MODULE,
        },
        .probe          = bq32k_probe,
        .id_table       = bq32k_id,
index e16989c48a90f1ed30c9324e6725ce44882e8e08..c51bc0a65afce4ca093a7184dc9a9b6cfe198abb 100644 (file)
@@ -1252,7 +1252,6 @@ static int ds1307_remove(struct i2c_client *client)
 static struct i2c_driver ds1307_driver = {
        .driver = {
                .name   = "rtc-ds1307",
-               .owner  = THIS_MODULE,
        },
        .probe          = ds1307_probe,
        .remove         = ds1307_remove,
index 72c9333752339ce322cc3b47af40865e0a1e1275..6d8665647eee28004ab1328e29ed63180efb9d4c 100644 (file)
@@ -708,7 +708,6 @@ static SIMPLE_DEV_PM_OPS(ds1374_pm, ds1374_suspend, ds1374_resume);
 static struct i2c_driver ds1374_driver = {
        .driver = {
                .name = "rtc-ds1374",
-               .owner = THIS_MODULE,
                .pm = &ds1374_pm,
        },
        .probe = ds1374_probe,
index 7e48e532214fe3735c743f5edc180b2457480a70..18f062f2a6343532ad443682b0c92d0799e8caa9 100644 (file)
@@ -500,7 +500,6 @@ MODULE_DEVICE_TABLE(i2c, ds3232_id);
 static struct i2c_driver ds3232_driver = {
        .driver = {
                .name = "rtc-ds3232",
-               .owner = THIS_MODULE,
                .pm     = &ds3232_pm_ops,
        },
        .probe = ds3232_probe,
index 83c3b3029fa774321332961b7abad8796088686b..576eadbba296799eca4bc2ad45d13769799a7cf1 100644 (file)
@@ -523,7 +523,6 @@ exit_free:
 static struct i2c_driver fm3130_driver = {
        .driver = {
                .name   = "rtc-fm3130",
-               .owner  = THIS_MODULE,
        },
        .probe          = fm3130_probe,
        .id_table       = fm3130_id,
index e9da7959d3fe17983c0654c5a1f7c144bb266031..097325d96db566e08ec8b70aaa9d595f6a044235 100644 (file)
@@ -599,7 +599,6 @@ MODULE_DEVICE_TABLE(of, hym8563_dt_idtable);
 static struct i2c_driver hym8563_driver = {
        .driver         = {
                .name   = "rtc-hym8563",
-               .owner  = THIS_MODULE,
                .pm     = &hym8563_pm_ops,
                .of_match_table = hym8563_dt_idtable,
        },
index da818d3337cec5d2bd552ac046286763fbf4a1fa..ee3e8dbcacafe63c26b4be26d0c106196a3b27c5 100644 (file)
@@ -659,7 +659,6 @@ MODULE_DEVICE_TABLE(i2c, isl12057_id);
 static struct i2c_driver isl12057_driver = {
        .driver = {
                .name = DRV_NAME,
-               .owner = THIS_MODULE,
                .pm = &isl12057_rtc_pm_ops,
                .of_match_table = of_match_ptr(isl12057_dt_match),
        },
index baf45c9ca65eefe77e4e8d815a0d510a9432b928..4b11d31f71740b4de9897ec46be1ec0b4cb39835 100644 (file)
@@ -231,7 +231,6 @@ MODULE_DEVICE_TABLE(of, pcf2127_of_match);
 static struct i2c_driver pcf2127_driver = {
        .driver         = {
                .name   = "rtc-pcf2127",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(pcf2127_of_match),
        },
        .probe          = pcf2127_probe,
index 6a12bf62c504bf736a7f1b371d8546a275b1dd03..b6d73dd881f248bce67976754fb5f932477d5686 100644 (file)
@@ -189,7 +189,6 @@ MODULE_DEVICE_TABLE(of, pcf85063_of_match);
 static struct i2c_driver pcf85063_driver = {
        .driver         = {
                .name   = "rtc-pcf85063",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(pcf85063_of_match),
        },
        .probe          = pcf85063_probe,
index 4cdb64be061bd7d175417581010d7f702ed6b006..e7ebcc0b7e59b55eecfc8daf7d2540a4b4282217 100644 (file)
@@ -334,7 +334,6 @@ MODULE_DEVICE_TABLE(of, pcf8523_of_match);
 static struct i2c_driver pcf8523_driver = {
        .driver = {
                .name = DRIVER_NAME,
-               .owner = THIS_MODULE,
                .of_match_table = of_match_ptr(pcf8523_of_match),
        },
        .probe = pcf8523_probe,
index 8bba022be946ebc4380bc692c78637ff487c292a..e569243db57efb4f5aca9f4634047a6bae3072b5 100644 (file)
@@ -483,7 +483,6 @@ MODULE_DEVICE_TABLE(of, pcf8563_of_match);
 static struct i2c_driver pcf8563_driver = {
        .driver         = {
                .name   = "rtc-pcf8563",
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(pcf8563_of_match),
        },
        .probe          = pcf8563_probe,
index 5911a6dca29199d976fd71b72e818eda1480431c..7ca9e8871d77d5e384b30af8b8c0617b58ab9000 100644 (file)
@@ -309,7 +309,6 @@ MODULE_DEVICE_TABLE(i2c, pcf8583_id);
 static struct i2c_driver pcf8583_driver = {
        .driver = {
                .name   = "pcf8583",
-               .owner  = THIS_MODULE,
        },
        .probe          = pcf8583_probe,
        .id_table       = pcf8583_id,
index e6298e02b400e7717c5fb549bc13a75203f59ea5..a297542e2f8a39d8a7a266bbad73ef7980004aa1 100644 (file)
@@ -628,7 +628,6 @@ static int rx8025_remove(struct i2c_client *client)
 static struct i2c_driver rx8025_driver = {
        .driver = {
                .name = "rtc-rx8025",
-               .owner = THIS_MODULE,
        },
        .probe          = rx8025_probe,
        .remove         = rx8025_remove,
index de8d9c4277826ca1e1e830e7dbdbea59a6a6a6ed..161e25d016c39ce86efef904db558926fbf6079a 100644 (file)
@@ -315,7 +315,6 @@ MODULE_DEVICE_TABLE(i2c, rx8581_id);
 static struct i2c_driver rx8581_driver = {
        .driver         = {
                .name   = "rtc-rx8581",
-               .owner  = THIS_MODULE,
        },
        .probe          = rx8581_probe,
        .id_table       = rx8581_id,