Commit b2884543 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Alexandre Belloni

rtc: Drop owner assignment from i2c_driver

i2c_driver does not need to set an owner because i2c_register_driver()
will set it.
Signed-off-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent 653ebd75
...@@ -1020,7 +1020,6 @@ MODULE_DEVICE_TABLE(i2c, abb5zes3_id); ...@@ -1020,7 +1020,6 @@ MODULE_DEVICE_TABLE(i2c, abb5zes3_id);
static struct i2c_driver abb5zes3_driver = { static struct i2c_driver abb5zes3_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = &abb5zes3_rtc_pm_ops, .pm = &abb5zes3_rtc_pm_ops,
.of_match_table = of_match_ptr(abb5zes3_dt_match), .of_match_table = of_match_ptr(abb5zes3_dt_match),
}, },
......
...@@ -234,7 +234,6 @@ MODULE_DEVICE_TABLE(i2c, bq32k_id); ...@@ -234,7 +234,6 @@ MODULE_DEVICE_TABLE(i2c, bq32k_id);
static struct i2c_driver bq32k_driver = { static struct i2c_driver bq32k_driver = {
.driver = { .driver = {
.name = "bq32k", .name = "bq32k",
.owner = THIS_MODULE,
}, },
.probe = bq32k_probe, .probe = bq32k_probe,
.id_table = bq32k_id, .id_table = bq32k_id,
......
...@@ -1252,7 +1252,6 @@ static int ds1307_remove(struct i2c_client *client) ...@@ -1252,7 +1252,6 @@ static int ds1307_remove(struct i2c_client *client)
static struct i2c_driver ds1307_driver = { static struct i2c_driver ds1307_driver = {
.driver = { .driver = {
.name = "rtc-ds1307", .name = "rtc-ds1307",
.owner = THIS_MODULE,
}, },
.probe = ds1307_probe, .probe = ds1307_probe,
.remove = ds1307_remove, .remove = ds1307_remove,
......
...@@ -708,7 +708,6 @@ static SIMPLE_DEV_PM_OPS(ds1374_pm, ds1374_suspend, ds1374_resume); ...@@ -708,7 +708,6 @@ static SIMPLE_DEV_PM_OPS(ds1374_pm, ds1374_suspend, ds1374_resume);
static struct i2c_driver ds1374_driver = { static struct i2c_driver ds1374_driver = {
.driver = { .driver = {
.name = "rtc-ds1374", .name = "rtc-ds1374",
.owner = THIS_MODULE,
.pm = &ds1374_pm, .pm = &ds1374_pm,
}, },
.probe = ds1374_probe, .probe = ds1374_probe,
......
...@@ -500,7 +500,6 @@ MODULE_DEVICE_TABLE(i2c, ds3232_id); ...@@ -500,7 +500,6 @@ MODULE_DEVICE_TABLE(i2c, ds3232_id);
static struct i2c_driver ds3232_driver = { static struct i2c_driver ds3232_driver = {
.driver = { .driver = {
.name = "rtc-ds3232", .name = "rtc-ds3232",
.owner = THIS_MODULE,
.pm = &ds3232_pm_ops, .pm = &ds3232_pm_ops,
}, },
.probe = ds3232_probe, .probe = ds3232_probe,
......
...@@ -523,7 +523,6 @@ static int fm3130_probe(struct i2c_client *client, ...@@ -523,7 +523,6 @@ static int fm3130_probe(struct i2c_client *client,
static struct i2c_driver fm3130_driver = { static struct i2c_driver fm3130_driver = {
.driver = { .driver = {
.name = "rtc-fm3130", .name = "rtc-fm3130",
.owner = THIS_MODULE,
}, },
.probe = fm3130_probe, .probe = fm3130_probe,
.id_table = fm3130_id, .id_table = fm3130_id,
......
...@@ -599,7 +599,6 @@ MODULE_DEVICE_TABLE(of, hym8563_dt_idtable); ...@@ -599,7 +599,6 @@ MODULE_DEVICE_TABLE(of, hym8563_dt_idtable);
static struct i2c_driver hym8563_driver = { static struct i2c_driver hym8563_driver = {
.driver = { .driver = {
.name = "rtc-hym8563", .name = "rtc-hym8563",
.owner = THIS_MODULE,
.pm = &hym8563_pm_ops, .pm = &hym8563_pm_ops,
.of_match_table = hym8563_dt_idtable, .of_match_table = hym8563_dt_idtable,
}, },
......
...@@ -659,7 +659,6 @@ MODULE_DEVICE_TABLE(i2c, isl12057_id); ...@@ -659,7 +659,6 @@ MODULE_DEVICE_TABLE(i2c, isl12057_id);
static struct i2c_driver isl12057_driver = { static struct i2c_driver isl12057_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = &isl12057_rtc_pm_ops, .pm = &isl12057_rtc_pm_ops,
.of_match_table = of_match_ptr(isl12057_dt_match), .of_match_table = of_match_ptr(isl12057_dt_match),
}, },
......
...@@ -231,7 +231,6 @@ MODULE_DEVICE_TABLE(of, pcf2127_of_match); ...@@ -231,7 +231,6 @@ MODULE_DEVICE_TABLE(of, pcf2127_of_match);
static struct i2c_driver pcf2127_driver = { static struct i2c_driver pcf2127_driver = {
.driver = { .driver = {
.name = "rtc-pcf2127", .name = "rtc-pcf2127",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pcf2127_of_match), .of_match_table = of_match_ptr(pcf2127_of_match),
}, },
.probe = pcf2127_probe, .probe = pcf2127_probe,
......
...@@ -189,7 +189,6 @@ MODULE_DEVICE_TABLE(of, pcf85063_of_match); ...@@ -189,7 +189,6 @@ MODULE_DEVICE_TABLE(of, pcf85063_of_match);
static struct i2c_driver pcf85063_driver = { static struct i2c_driver pcf85063_driver = {
.driver = { .driver = {
.name = "rtc-pcf85063", .name = "rtc-pcf85063",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pcf85063_of_match), .of_match_table = of_match_ptr(pcf85063_of_match),
}, },
.probe = pcf85063_probe, .probe = pcf85063_probe,
......
...@@ -334,7 +334,6 @@ MODULE_DEVICE_TABLE(of, pcf8523_of_match); ...@@ -334,7 +334,6 @@ MODULE_DEVICE_TABLE(of, pcf8523_of_match);
static struct i2c_driver pcf8523_driver = { static struct i2c_driver pcf8523_driver = {
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pcf8523_of_match), .of_match_table = of_match_ptr(pcf8523_of_match),
}, },
.probe = pcf8523_probe, .probe = pcf8523_probe,
......
...@@ -483,7 +483,6 @@ MODULE_DEVICE_TABLE(of, pcf8563_of_match); ...@@ -483,7 +483,6 @@ MODULE_DEVICE_TABLE(of, pcf8563_of_match);
static struct i2c_driver pcf8563_driver = { static struct i2c_driver pcf8563_driver = {
.driver = { .driver = {
.name = "rtc-pcf8563", .name = "rtc-pcf8563",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pcf8563_of_match), .of_match_table = of_match_ptr(pcf8563_of_match),
}, },
.probe = pcf8563_probe, .probe = pcf8563_probe,
......
...@@ -309,7 +309,6 @@ MODULE_DEVICE_TABLE(i2c, pcf8583_id); ...@@ -309,7 +309,6 @@ MODULE_DEVICE_TABLE(i2c, pcf8583_id);
static struct i2c_driver pcf8583_driver = { static struct i2c_driver pcf8583_driver = {
.driver = { .driver = {
.name = "pcf8583", .name = "pcf8583",
.owner = THIS_MODULE,
}, },
.probe = pcf8583_probe, .probe = pcf8583_probe,
.id_table = pcf8583_id, .id_table = pcf8583_id,
......
...@@ -628,7 +628,6 @@ static int rx8025_remove(struct i2c_client *client) ...@@ -628,7 +628,6 @@ static int rx8025_remove(struct i2c_client *client)
static struct i2c_driver rx8025_driver = { static struct i2c_driver rx8025_driver = {
.driver = { .driver = {
.name = "rtc-rx8025", .name = "rtc-rx8025",
.owner = THIS_MODULE,
}, },
.probe = rx8025_probe, .probe = rx8025_probe,
.remove = rx8025_remove, .remove = rx8025_remove,
......
...@@ -315,7 +315,6 @@ MODULE_DEVICE_TABLE(i2c, rx8581_id); ...@@ -315,7 +315,6 @@ MODULE_DEVICE_TABLE(i2c, rx8581_id);
static struct i2c_driver rx8581_driver = { static struct i2c_driver rx8581_driver = {
.driver = { .driver = {
.name = "rtc-rx8581", .name = "rtc-rx8581",
.owner = THIS_MODULE,
}, },
.probe = rx8581_probe, .probe = rx8581_probe,
.id_table = rx8581_id, .id_table = rx8581_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment