Commit 0929ae37 authored by Wolfram Sang's avatar Wolfram Sang

rtc: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent d373860d
...@@ -352,7 +352,6 @@ static int pm80x_rtc_remove(struct platform_device *pdev) ...@@ -352,7 +352,6 @@ static int pm80x_rtc_remove(struct platform_device *pdev)
static struct platform_driver pm80x_rtc_driver = { static struct platform_driver pm80x_rtc_driver = {
.driver = { .driver = {
.name = "88pm80x-rtc", .name = "88pm80x-rtc",
.owner = THIS_MODULE,
.pm = &pm80x_rtc_pm_ops, .pm = &pm80x_rtc_pm_ops,
}, },
.probe = pm80x_rtc_probe, .probe = pm80x_rtc_probe,
......
...@@ -448,7 +448,6 @@ static SIMPLE_DEV_PM_OPS(pm860x_rtc_pm_ops, pm860x_rtc_suspend, pm860x_rtc_resum ...@@ -448,7 +448,6 @@ static SIMPLE_DEV_PM_OPS(pm860x_rtc_pm_ops, pm860x_rtc_suspend, pm860x_rtc_resum
static struct platform_driver pm860x_rtc_driver = { static struct platform_driver pm860x_rtc_driver = {
.driver = { .driver = {
.name = "88pm860x-rtc", .name = "88pm860x-rtc",
.owner = THIS_MODULE,
.pm = &pm860x_rtc_pm_ops, .pm = &pm860x_rtc_pm_ops,
}, },
.probe = pm860x_rtc_probe, .probe = pm860x_rtc_probe,
......
...@@ -243,7 +243,6 @@ static int __init ab3100_rtc_probe(struct platform_device *pdev) ...@@ -243,7 +243,6 @@ static int __init ab3100_rtc_probe(struct platform_device *pdev)
static struct platform_driver ab3100_rtc_driver = { static struct platform_driver ab3100_rtc_driver = {
.driver = { .driver = {
.name = "ab3100-rtc", .name = "ab3100-rtc",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -517,7 +517,6 @@ static int ab8500_rtc_remove(struct platform_device *pdev) ...@@ -517,7 +517,6 @@ static int ab8500_rtc_remove(struct platform_device *pdev)
static struct platform_driver ab8500_rtc_driver = { static struct platform_driver ab8500_rtc_driver = {
.driver = { .driver = {
.name = "ab8500-rtc", .name = "ab8500-rtc",
.owner = THIS_MODULE,
}, },
.probe = ab8500_rtc_probe, .probe = ab8500_rtc_probe,
.remove = ab8500_rtc_remove, .remove = ab8500_rtc_remove,
......
...@@ -277,7 +277,6 @@ static struct platform_driver at32_rtc_driver = { ...@@ -277,7 +277,6 @@ static struct platform_driver at32_rtc_driver = {
.remove = __exit_p(at32_rtc_remove), .remove = __exit_p(at32_rtc_remove),
.driver = { .driver = {
.name = "at32ap700x_rtc", .name = "at32ap700x_rtc",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -491,7 +491,6 @@ static struct platform_driver at91_rtc_driver = { ...@@ -491,7 +491,6 @@ static struct platform_driver at91_rtc_driver = {
.shutdown = at91_rtc_shutdown, .shutdown = at91_rtc_shutdown,
.driver = { .driver = {
.name = "at91_rtc", .name = "at91_rtc",
.owner = THIS_MODULE,
.pm = &at91_rtc_pm_ops, .pm = &at91_rtc_pm_ops,
.of_match_table = of_match_ptr(at91_rtc_dt_ids), .of_match_table = of_match_ptr(at91_rtc_dt_ids),
}, },
......
...@@ -446,7 +446,6 @@ static struct platform_driver at91_rtc_driver = { ...@@ -446,7 +446,6 @@ static struct platform_driver at91_rtc_driver = {
.shutdown = at91_rtc_shutdown, .shutdown = at91_rtc_shutdown,
.driver = { .driver = {
.name = "rtc-at91sam9", .name = "rtc-at91sam9",
.owner = THIS_MODULE,
.pm = &at91_rtc_pm_ops, .pm = &at91_rtc_pm_ops,
}, },
}; };
......
...@@ -117,7 +117,6 @@ static int au1xtoy_rtc_probe(struct platform_device *pdev) ...@@ -117,7 +117,6 @@ static int au1xtoy_rtc_probe(struct platform_device *pdev)
static struct platform_driver au1xrtc_driver = { static struct platform_driver au1xrtc_driver = {
.driver = { .driver = {
.name = "rtc-au1xxx", .name = "rtc-au1xxx",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -434,7 +434,6 @@ static SIMPLE_DEV_PM_OPS(bfin_rtc_pm_ops, bfin_rtc_suspend, bfin_rtc_resume); ...@@ -434,7 +434,6 @@ static SIMPLE_DEV_PM_OPS(bfin_rtc_pm_ops, bfin_rtc_suspend, bfin_rtc_resume);
static struct platform_driver bfin_rtc_driver = { static struct platform_driver bfin_rtc_driver = {
.driver = { .driver = {
.name = "rtc-bfin", .name = "rtc-bfin",
.owner = THIS_MODULE,
.pm = &bfin_rtc_pm_ops, .pm = &bfin_rtc_pm_ops,
}, },
.probe = bfin_rtc_probe, .probe = bfin_rtc_probe,
......
...@@ -192,7 +192,6 @@ MODULE_ALIAS("platform:rtc-bq4802"); ...@@ -192,7 +192,6 @@ MODULE_ALIAS("platform:rtc-bq4802");
static struct platform_driver bq4802_driver = { static struct platform_driver bq4802_driver = {
.driver = { .driver = {
.name = "rtc-bq4802", .name = "rtc-bq4802",
.owner = THIS_MODULE,
}, },
.probe = bq4802_probe, .probe = bq4802_probe,
}; };
......
...@@ -267,7 +267,6 @@ static const struct of_device_id coh901331_dt_match[] = { ...@@ -267,7 +267,6 @@ static const struct of_device_id coh901331_dt_match[] = {
static struct platform_driver coh901331_driver = { static struct platform_driver coh901331_driver = {
.driver = { .driver = {
.name = "rtc-coh901331", .name = "rtc-coh901331",
.owner = THIS_MODULE,
.pm = &coh901331_pm_ops, .pm = &coh901331_pm_ops,
.of_match_table = coh901331_dt_match, .of_match_table = coh901331_dt_match,
}, },
......
...@@ -265,7 +265,6 @@ static struct platform_driver da9052_rtc_driver = { ...@@ -265,7 +265,6 @@ static struct platform_driver da9052_rtc_driver = {
.probe = da9052_rtc_probe, .probe = da9052_rtc_probe,
.driver = { .driver = {
.name = "da9052-rtc", .name = "da9052-rtc",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -391,7 +391,6 @@ static struct platform_driver da9055_rtc_driver = { ...@@ -391,7 +391,6 @@ static struct platform_driver da9055_rtc_driver = {
.probe = da9055_rtc_probe, .probe = da9055_rtc_probe,
.driver = { .driver = {
.name = "da9055-rtc", .name = "da9055-rtc",
.owner = THIS_MODULE,
.pm = &da9055_rtc_pm_ops, .pm = &da9055_rtc_pm_ops,
}, },
}; };
......
...@@ -341,7 +341,6 @@ static struct platform_driver da9063_rtc_driver = { ...@@ -341,7 +341,6 @@ static struct platform_driver da9063_rtc_driver = {
.probe = da9063_rtc_probe, .probe = da9063_rtc_probe,
.driver = { .driver = {
.name = DA9063_DRVNAME_RTC, .name = DA9063_DRVNAME_RTC,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -550,7 +550,6 @@ static struct platform_driver davinci_rtc_driver = { ...@@ -550,7 +550,6 @@ static struct platform_driver davinci_rtc_driver = {
.remove = __exit_p(davinci_rtc_remove), .remove = __exit_p(davinci_rtc_remove),
.driver = { .driver = {
.name = "rtc_davinci", .name = "rtc_davinci",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -146,7 +146,6 @@ static int dm355evm_rtc_probe(struct platform_device *pdev) ...@@ -146,7 +146,6 @@ static int dm355evm_rtc_probe(struct platform_device *pdev)
static struct platform_driver rtc_dm355evm_driver = { static struct platform_driver rtc_dm355evm_driver = {
.probe = dm355evm_rtc_probe, .probe = dm355evm_rtc_probe,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "rtc-dm355evm", .name = "rtc-dm355evm",
}, },
}; };
......
...@@ -170,7 +170,6 @@ static int __init ds1216_rtc_probe(struct platform_device *pdev) ...@@ -170,7 +170,6 @@ static int __init ds1216_rtc_probe(struct platform_device *pdev)
static struct platform_driver ds1216_rtc_platform_driver = { static struct platform_driver ds1216_rtc_platform_driver = {
.driver = { .driver = {
.name = "rtc-ds1216", .name = "rtc-ds1216",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -356,7 +356,6 @@ static int ds1286_probe(struct platform_device *pdev) ...@@ -356,7 +356,6 @@ static int ds1286_probe(struct platform_device *pdev)
static struct platform_driver ds1286_platform_driver = { static struct platform_driver ds1286_platform_driver = {
.driver = { .driver = {
.name = "rtc-ds1286", .name = "rtc-ds1286",
.owner = THIS_MODULE,
}, },
.probe = ds1286_probe, .probe = ds1286_probe,
}; };
......
...@@ -244,7 +244,6 @@ static int __init ds1302_rtc_probe(struct platform_device *pdev) ...@@ -244,7 +244,6 @@ static int __init ds1302_rtc_probe(struct platform_device *pdev)
static struct platform_driver ds1302_platform_driver = { static struct platform_driver ds1302_platform_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -561,7 +561,6 @@ static struct platform_driver ds1511_rtc_driver = { ...@@ -561,7 +561,6 @@ static struct platform_driver ds1511_rtc_driver = {
.remove = ds1511_rtc_remove, .remove = ds1511_rtc_remove,
.driver = { .driver = {
.name = "ds1511", .name = "ds1511",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -351,7 +351,6 @@ static struct platform_driver ds1553_rtc_driver = { ...@@ -351,7 +351,6 @@ static struct platform_driver ds1553_rtc_driver = {
.remove = ds1553_rtc_remove, .remove = ds1553_rtc_remove,
.driver = { .driver = {
.name = "rtc-ds1553", .name = "rtc-ds1553",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -230,7 +230,6 @@ static struct platform_driver ds1742_rtc_driver = { ...@@ -230,7 +230,6 @@ static struct platform_driver ds1742_rtc_driver = {
.remove = ds1742_rtc_remove, .remove = ds1742_rtc_remove,
.driver = { .driver = {
.name = "rtc-ds1742", .name = "rtc-ds1742",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(ds1742_rtc_of_match), .of_match_table = of_match_ptr(ds1742_rtc_of_match),
}, },
}; };
......
...@@ -274,7 +274,6 @@ static struct platform_driver rtc_device_driver = { ...@@ -274,7 +274,6 @@ static struct platform_driver rtc_device_driver = {
.remove = rtc_remove, .remove = rtc_remove,
.driver = { .driver = {
.name = "ds2404", .name = "ds2404",
.owner = THIS_MODULE,
}, },
}; };
module_platform_driver(rtc_device_driver); module_platform_driver(rtc_device_driver);
......
...@@ -226,7 +226,6 @@ static int __init efi_rtc_probe(struct platform_device *dev) ...@@ -226,7 +226,6 @@ static int __init efi_rtc_probe(struct platform_device *dev)
static struct platform_driver efi_rtc_driver = { static struct platform_driver efi_rtc_driver = {
.driver = { .driver = {
.name = "rtc-efi", .name = "rtc-efi",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -174,7 +174,6 @@ static int ep93xx_rtc_remove(struct platform_device *pdev) ...@@ -174,7 +174,6 @@ static int ep93xx_rtc_remove(struct platform_device *pdev)
static struct platform_driver ep93xx_rtc_driver = { static struct platform_driver ep93xx_rtc_driver = {
.driver = { .driver = {
.name = "ep93xx-rtc", .name = "ep93xx-rtc",
.owner = THIS_MODULE,
}, },
.probe = ep93xx_rtc_probe, .probe = ep93xx_rtc_probe,
.remove = ep93xx_rtc_remove, .remove = ep93xx_rtc_remove,
......
...@@ -51,7 +51,6 @@ static int __init generic_rtc_probe(struct platform_device *dev) ...@@ -51,7 +51,6 @@ static int __init generic_rtc_probe(struct platform_device *dev)
static struct platform_driver generic_rtc_driver = { static struct platform_driver generic_rtc_driver = {
.driver = { .driver = {
.name = "rtc-generic", .name = "rtc-generic",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -331,7 +331,6 @@ static struct platform_driver hid_time_platform_driver = { ...@@ -331,7 +331,6 @@ static struct platform_driver hid_time_platform_driver = {
.id_table = hid_time_ids, .id_table = hid_time_ids,
.driver = { .driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.owner = THIS_MODULE,
}, },
.probe = hid_time_probe, .probe = hid_time_probe,
.remove = hid_time_remove, .remove = hid_time_remove,
......
...@@ -499,7 +499,6 @@ MODULE_DEVICE_TABLE(of, dryice_dt_ids); ...@@ -499,7 +499,6 @@ MODULE_DEVICE_TABLE(of, dryice_dt_ids);
static struct platform_driver dryice_rtc_driver = { static struct platform_driver dryice_rtc_driver = {
.driver = { .driver = {
.name = "imxdi_rtc", .name = "imxdi_rtc",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(dryice_dt_ids), .of_match_table = of_match_ptr(dryice_dt_ids),
}, },
.remove = __exit_p(dryice_rtc_remove), .remove = __exit_p(dryice_rtc_remove),
......
...@@ -299,7 +299,6 @@ static struct platform_driver jz4740_rtc_driver = { ...@@ -299,7 +299,6 @@ static struct platform_driver jz4740_rtc_driver = {
.probe = jz4740_rtc_probe, .probe = jz4740_rtc_probe,
.driver = { .driver = {
.name = "jz4740-rtc", .name = "jz4740-rtc",
.owner = THIS_MODULE,
.pm = JZ4740_RTC_PM_OPS, .pm = JZ4740_RTC_PM_OPS,
}, },
}; };
......
...@@ -316,7 +316,6 @@ static struct platform_driver lp8788_rtc_driver = { ...@@ -316,7 +316,6 @@ static struct platform_driver lp8788_rtc_driver = {
.probe = lp8788_rtc_probe, .probe = lp8788_rtc_probe,
.driver = { .driver = {
.name = LP8788_DEV_RTC, .name = LP8788_DEV_RTC,
.owner = THIS_MODULE,
}, },
}; };
module_platform_driver(lp8788_rtc_driver); module_platform_driver(lp8788_rtc_driver);
......
...@@ -379,7 +379,6 @@ static struct platform_driver lpc32xx_rtc_driver = { ...@@ -379,7 +379,6 @@ static struct platform_driver lpc32xx_rtc_driver = {
.remove = lpc32xx_rtc_remove, .remove = lpc32xx_rtc_remove,
.driver = { .driver = {
.name = RTC_NAME, .name = RTC_NAME,
.owner = THIS_MODULE,
.pm = LPC32XX_RTC_PM_OPS, .pm = LPC32XX_RTC_PM_OPS,
.of_match_table = of_match_ptr(lpc32xx_rtc_match), .of_match_table = of_match_ptr(lpc32xx_rtc_match),
}, },
......
...@@ -188,7 +188,6 @@ static int ls1x_rtc_probe(struct platform_device *pdev) ...@@ -188,7 +188,6 @@ static int ls1x_rtc_probe(struct platform_device *pdev)
static struct platform_driver ls1x_rtc_driver = { static struct platform_driver ls1x_rtc_driver = {
.driver = { .driver = {
.name = "ls1x-rtc", .name = "ls1x-rtc",
.owner = THIS_MODULE,
}, },
.probe = ls1x_rtc_probe, .probe = ls1x_rtc_probe,
}; };
......
...@@ -181,7 +181,6 @@ static int m48t35_probe(struct platform_device *pdev) ...@@ -181,7 +181,6 @@ static int m48t35_probe(struct platform_device *pdev)
static struct platform_driver m48t35_platform_driver = { static struct platform_driver m48t35_platform_driver = {
.driver = { .driver = {
.name = "rtc-m48t35", .name = "rtc-m48t35",
.owner = THIS_MODULE,
}, },
.probe = m48t35_probe, .probe = m48t35_probe,
}; };
......
...@@ -504,7 +504,6 @@ MODULE_ALIAS("platform:rtc-m48t59"); ...@@ -504,7 +504,6 @@ MODULE_ALIAS("platform:rtc-m48t59");
static struct platform_driver m48t59_rtc_driver = { static struct platform_driver m48t59_rtc_driver = {
.driver = { .driver = {
.name = "rtc-m48t59", .name = "rtc-m48t59",
.owner = THIS_MODULE,
}, },
.probe = m48t59_rtc_probe, .probe = m48t59_rtc_probe,
.remove = m48t59_rtc_remove, .remove = m48t59_rtc_remove,
......
...@@ -169,7 +169,6 @@ static int m48t86_rtc_probe(struct platform_device *dev) ...@@ -169,7 +169,6 @@ static int m48t86_rtc_probe(struct platform_device *dev)
static struct platform_driver m48t86_rtc_platform_driver = { static struct platform_driver m48t86_rtc_platform_driver = {
.driver = { .driver = {
.name = "rtc-m48t86", .name = "rtc-m48t86",
.owner = THIS_MODULE,
}, },
.probe = m48t86_rtc_probe, .probe = m48t86_rtc_probe,
}; };
......
...@@ -513,7 +513,6 @@ static const struct platform_device_id rtc_id[] = { ...@@ -513,7 +513,6 @@ static const struct platform_device_id rtc_id[] = {
static struct platform_driver max77686_rtc_driver = { static struct platform_driver max77686_rtc_driver = {
.driver = { .driver = {
.name = "max77686-rtc", .name = "max77686-rtc",
.owner = THIS_MODULE,
.pm = &max77686_rtc_pm_ops, .pm = &max77686_rtc_pm_ops,
}, },
.probe = max77686_rtc_probe, .probe = max77686_rtc_probe,
......
...@@ -488,7 +488,6 @@ static const struct platform_device_id rtc_id[] = { ...@@ -488,7 +488,6 @@ static const struct platform_device_id rtc_id[] = {
static struct platform_driver max77802_rtc_driver = { static struct platform_driver max77802_rtc_driver = {
.driver = { .driver = {
.name = "max77802-rtc", .name = "max77802-rtc",
.owner = THIS_MODULE,
.pm = &max77802_rtc_pm_ops, .pm = &max77802_rtc_pm_ops,
}, },
.probe = max77802_rtc_probe, .probe = max77802_rtc_probe,
......
...@@ -215,7 +215,6 @@ static int max8907_rtc_probe(struct platform_device *pdev) ...@@ -215,7 +215,6 @@ static int max8907_rtc_probe(struct platform_device *pdev)
static struct platform_driver max8907_rtc_driver = { static struct platform_driver max8907_rtc_driver = {
.driver = { .driver = {
.name = "max8907-rtc", .name = "max8907-rtc",
.owner = THIS_MODULE,
}, },
.probe = max8907_rtc_probe, .probe = max8907_rtc_probe,
}; };
......
...@@ -314,7 +314,6 @@ static SIMPLE_DEV_PM_OPS(max8925_rtc_pm_ops, max8925_rtc_suspend, max8925_rtc_re ...@@ -314,7 +314,6 @@ static SIMPLE_DEV_PM_OPS(max8925_rtc_pm_ops, max8925_rtc_suspend, max8925_rtc_re
static struct platform_driver max8925_rtc_driver = { static struct platform_driver max8925_rtc_driver = {
.driver = { .driver = {
.name = "max8925-rtc", .name = "max8925-rtc",
.owner = THIS_MODULE,
.pm = &max8925_rtc_pm_ops, .pm = &max8925_rtc_pm_ops,
}, },
.probe = max8925_rtc_probe, .probe = max8925_rtc_probe,
......
...@@ -523,7 +523,6 @@ static const struct platform_device_id rtc_id[] = { ...@@ -523,7 +523,6 @@ static const struct platform_device_id rtc_id[] = {
static struct platform_driver max8997_rtc_driver = { static struct platform_driver max8997_rtc_driver = {
.driver = { .driver = {
.name = "max8997-rtc", .name = "max8997-rtc",
.owner = THIS_MODULE,
}, },
.probe = max8997_rtc_probe, .probe = max8997_rtc_probe,
.shutdown = max8997_rtc_shutdown, .shutdown = max8997_rtc_shutdown,
......
...@@ -313,7 +313,6 @@ static const struct platform_device_id max8998_rtc_id[] = { ...@@ -313,7 +313,6 @@ static const struct platform_device_id max8998_rtc_id[] = {
static struct platform_driver max8998_rtc_driver = { static struct platform_driver max8998_rtc_driver = {
.driver = { .driver = {
.name = "max8998-rtc", .name = "max8998-rtc",
.owner = THIS_MODULE,
}, },
.probe = max8998_rtc_probe, .probe = max8998_rtc_probe,
.id_table = max8998_rtc_id, .id_table = max8998_rtc_id,
......
...@@ -370,7 +370,6 @@ static struct platform_driver mc13xxx_rtc_driver = { ...@@ -370,7 +370,6 @@ static struct platform_driver mc13xxx_rtc_driver = {
.remove = mc13xxx_rtc_remove, .remove = mc13xxx_rtc_remove,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -317,7 +317,6 @@ static struct platform_driver moxart_rtc_driver = { ...@@ -317,7 +317,6 @@ static struct platform_driver moxart_rtc_driver = {
.probe = moxart_rtc_probe, .probe = moxart_rtc_probe,
.driver = { .driver = {
.name = "moxart-rtc", .name = "moxart-rtc",
.owner = THIS_MODULE,
.of_match_table = moxart_rtc_match, .of_match_table = moxart_rtc_match,
}, },
}; };
......
...@@ -411,7 +411,6 @@ static const struct of_device_id mpc5121_rtc_match[] = { ...@@ -411,7 +411,6 @@ static const struct of_device_id mpc5121_rtc_match[] = {
static struct platform_driver mpc5121_rtc_driver = { static struct platform_driver mpc5121_rtc_driver = {
.driver = { .driver = {
.name = "mpc5121-rtc", .name = "mpc5121-rtc",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(mpc5121_rtc_match), .of_match_table = of_match_ptr(mpc5121_rtc_match),
}, },
.probe = mpc5121_rtc_probe, .probe = mpc5121_rtc_probe,
......
...@@ -225,7 +225,6 @@ static int __init msm6242_rtc_probe(struct platform_device *pdev) ...@@ -225,7 +225,6 @@ static int __init msm6242_rtc_probe(struct platform_device *pdev)
static struct platform_driver msm6242_rtc_driver = { static struct platform_driver msm6242_rtc_driver = {
.driver = { .driver = {
.name = "rtc-msm6242", .name = "rtc-msm6242",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -329,7 +329,6 @@ static struct platform_driver mv_rtc_driver = { ...@@ -329,7 +329,6 @@ static struct platform_driver mv_rtc_driver = {
.remove = __exit_p(mv_rtc_remove), .remove = __exit_p(mv_rtc_remove),
.driver = { .driver = {
.name = "rtc-mv", .name = "rtc-mv",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(rtc_mv_of_match_table), .of_match_table = of_match_ptr(rtc_mv_of_match_table),
}, },
}; };
......
...@@ -489,7 +489,6 @@ static struct platform_driver mxc_rtc_driver = { ...@@ -489,7 +489,6 @@ static struct platform_driver mxc_rtc_driver = {
.driver = { .driver = {
.name = "mxc_rtc", .name = "mxc_rtc",
.pm = &mxc_rtc_pm_ops, .pm = &mxc_rtc_pm_ops,
.owner = THIS_MODULE,
}, },
.id_table = imx_rtc_devtype, .id_table = imx_rtc_devtype,
.probe = mxc_rtc_probe, .probe = mxc_rtc_probe,
......
...@@ -262,7 +262,6 @@ static int __init nuc900_rtc_probe(struct platform_device *pdev) ...@@ -262,7 +262,6 @@ static int __init nuc900_rtc_probe(struct platform_device *pdev)
static struct platform_driver nuc900_rtc_driver = { static struct platform_driver nuc900_rtc_driver = {
.driver = { .driver = {
.name = "nuc900-rtc", .name = "nuc900-rtc",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -569,7 +569,6 @@ static struct platform_driver omap_rtc_driver = { ...@@ -569,7 +569,6 @@ static struct platform_driver omap_rtc_driver = {
.shutdown = omap_rtc_shutdown, .shutdown = omap_rtc_shutdown,
.driver = { .driver = {
.name = DRIVER_NAME, .name = DRIVER_NAME,
.owner = THIS_MODULE,
.pm = &omap_rtc_pm_ops, .pm = &omap_rtc_pm_ops,
.of_match_table = omap_rtc_of_match, .of_match_table = omap_rtc_of_match,
}, },
......
...@@ -363,7 +363,6 @@ static struct platform_driver palmas_rtc_driver = { ...@@ -363,7 +363,6 @@ static struct platform_driver palmas_rtc_driver = {
.probe = palmas_rtc_probe, .probe = palmas_rtc_probe,
.remove = palmas_rtc_remove, .remove = palmas_rtc_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "palmas-rtc", .name = "palmas-rtc",
.pm = &palmas_rtc_pm_ops, .pm = &palmas_rtc_pm_ops,
.of_match_table = of_match_ptr(of_palmas_rtc_match), .of_match_table = of_match_ptr(of_palmas_rtc_match),
......
...@@ -184,7 +184,6 @@ static struct platform_driver pcap_rtc_driver = { ...@@ -184,7 +184,6 @@ static struct platform_driver pcap_rtc_driver = {
.remove = __exit_p(pcap_rtc_remove), .remove = __exit_p(pcap_rtc_remove),
.driver = { .driver = {
.name = "pcap-rtc", .name = "pcap-rtc",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -485,7 +485,6 @@ static struct platform_driver pm8xxx_rtc_driver = { ...@@ -485,7 +485,6 @@ static struct platform_driver pm8xxx_rtc_driver = {
.probe = pm8xxx_rtc_probe, .probe = pm8xxx_rtc_probe,
.driver = { .driver = {
.name = "rtc-pm8xxx", .name = "rtc-pm8xxx",
.owner = THIS_MODULE,
.pm = &pm8xxx_rtc_pm_ops, .pm = &pm8xxx_rtc_pm_ops,
.of_match_table = pm8xxx_id_table, .of_match_table = pm8xxx_id_table,
}, },
......
...@@ -74,7 +74,6 @@ static int __init ps3_rtc_probe(struct platform_device *dev) ...@@ -74,7 +74,6 @@ static int __init ps3_rtc_probe(struct platform_device *dev)
static struct platform_driver ps3_rtc_driver = { static struct platform_driver ps3_rtc_driver = {
.driver = { .driver = {
.name = "rtc-ps3", .name = "rtc-ps3",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -328,7 +328,6 @@ static struct platform_driver puv3_rtc_driver = { ...@@ -328,7 +328,6 @@ static struct platform_driver puv3_rtc_driver = {
.remove = puv3_rtc_remove, .remove = puv3_rtc_remove,
.driver = { .driver = {
.name = "PKUnity-v3-RTC", .name = "PKUnity-v3-RTC",
.owner = THIS_MODULE,
.pm = &puv3_rtc_pm_ops, .pm = &puv3_rtc_pm_ops,
} }
}; };
......
...@@ -310,7 +310,6 @@ static struct platform_driver rc5t583_rtc_driver = { ...@@ -310,7 +310,6 @@ static struct platform_driver rc5t583_rtc_driver = {
.probe = rc5t583_rtc_probe, .probe = rc5t583_rtc_probe,
.remove = rc5t583_rtc_remove, .remove = rc5t583_rtc_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "rtc-rc5t583", .name = "rtc-rc5t583",
.pm = &rc5t583_rtc_pm_ops, .pm = &rc5t583_rtc_pm_ops,
}, },
......
...@@ -273,7 +273,6 @@ static int __exit rp5c01_rtc_remove(struct platform_device *dev) ...@@ -273,7 +273,6 @@ static int __exit rp5c01_rtc_remove(struct platform_device *dev)
static struct platform_driver rp5c01_rtc_driver = { static struct platform_driver rp5c01_rtc_driver = {
.driver = { .driver = {
.name = "rtc-rp5c01", .name = "rtc-rp5c01",
.owner = THIS_MODULE,
}, },
.remove = __exit_p(rp5c01_rtc_remove), .remove = __exit_p(rp5c01_rtc_remove),
}; };
......
...@@ -381,7 +381,6 @@ static int rs5c313_rtc_probe(struct platform_device *pdev) ...@@ -381,7 +381,6 @@ static int rs5c313_rtc_probe(struct platform_device *pdev)
static struct platform_driver rs5c313_rtc_platform_driver = { static struct platform_driver rs5c313_rtc_platform_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
.probe = rs5c313_rtc_probe, .probe = rs5c313_rtc_probe,
}; };
......
...@@ -894,7 +894,6 @@ static struct platform_driver s3c_rtc_driver = { ...@@ -894,7 +894,6 @@ static struct platform_driver s3c_rtc_driver = {
.remove = s3c_rtc_remove, .remove = s3c_rtc_remove,
.driver = { .driver = {
.name = "s3c-rtc", .name = "s3c-rtc",
.owner = THIS_MODULE,
.pm = &s3c_rtc_pm_ops, .pm = &s3c_rtc_pm_ops,
.of_match_table = of_match_ptr(s3c_rtc_dt_match), .of_match_table = of_match_ptr(s3c_rtc_dt_match),
}, },
......
...@@ -837,7 +837,6 @@ static const struct platform_device_id s5m_rtc_id[] = { ...@@ -837,7 +837,6 @@ static const struct platform_device_id s5m_rtc_id[] = {
static struct platform_driver s5m_rtc_driver = { static struct platform_driver s5m_rtc_driver = {
.driver = { .driver = {
.name = "s5m-rtc", .name = "s5m-rtc",
.owner = THIS_MODULE,
.pm = &s5m_rtc_pm_ops, .pm = &s5m_rtc_pm_ops,
}, },
.probe = s5m_rtc_probe, .probe = s5m_rtc_probe,
......
...@@ -782,7 +782,6 @@ static SIMPLE_DEV_PM_OPS(sh_rtc_pm_ops, sh_rtc_suspend, sh_rtc_resume); ...@@ -782,7 +782,6 @@ static SIMPLE_DEV_PM_OPS(sh_rtc_pm_ops, sh_rtc_suspend, sh_rtc_resume);
static struct platform_driver sh_rtc_platform_driver = { static struct platform_driver sh_rtc_platform_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
.pm = &sh_rtc_pm_ops, .pm = &sh_rtc_pm_ops,
}, },
.remove = __exit_p(sh_rtc_remove), .remove = __exit_p(sh_rtc_remove),
......
...@@ -408,7 +408,6 @@ static SIMPLE_DEV_PM_OPS(sirfsoc_rtc_pm_ops, ...@@ -408,7 +408,6 @@ static SIMPLE_DEV_PM_OPS(sirfsoc_rtc_pm_ops,
static struct platform_driver sirfsoc_rtc_driver = { static struct platform_driver sirfsoc_rtc_driver = {
.driver = { .driver = {
.name = "sirfsoc-rtc", .name = "sirfsoc-rtc",
.owner = THIS_MODULE,
.pm = &sirfsoc_rtc_pm_ops, .pm = &sirfsoc_rtc_pm_ops,
.of_match_table = sirfsoc_rtc_of_match, .of_match_table = sirfsoc_rtc_of_match,
}, },
......
...@@ -327,7 +327,6 @@ MODULE_DEVICE_TABLE(of, snvs_dt_ids); ...@@ -327,7 +327,6 @@ MODULE_DEVICE_TABLE(of, snvs_dt_ids);
static struct platform_driver snvs_rtc_driver = { static struct platform_driver snvs_rtc_driver = {
.driver = { .driver = {
.name = "snvs_rtc", .name = "snvs_rtc",
.owner = THIS_MODULE,
.pm = &snvs_rtc_pm_ops, .pm = &snvs_rtc_pm_ops,
.of_match_table = snvs_dt_ids, .of_match_table = snvs_dt_ids,
}, },
......
...@@ -54,7 +54,6 @@ static int __init starfire_rtc_probe(struct platform_device *pdev) ...@@ -54,7 +54,6 @@ static int __init starfire_rtc_probe(struct platform_device *pdev)
static struct platform_driver starfire_rtc_driver = { static struct platform_driver starfire_rtc_driver = {
.driver = { .driver = {
.name = "rtc-starfire", .name = "rtc-starfire",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -358,7 +358,6 @@ static struct platform_driver stk17ta8_rtc_driver = { ...@@ -358,7 +358,6 @@ static struct platform_driver stk17ta8_rtc_driver = {
.remove = stk17ta8_rtc_remove, .remove = stk17ta8_rtc_remove,
.driver = { .driver = {
.name = "stk17ta8", .name = "stk17ta8",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -341,7 +341,6 @@ static struct platform_driver stmp3xxx_rtcdrv = { ...@@ -341,7 +341,6 @@ static struct platform_driver stmp3xxx_rtcdrv = {
.remove = stmp3xxx_rtc_remove, .remove = stmp3xxx_rtc_remove,
.driver = { .driver = {
.name = "stmp3xxx-rtc", .name = "stmp3xxx-rtc",
.owner = THIS_MODULE,
.pm = &stmp3xxx_rtc_pm_ops, .pm = &stmp3xxx_rtc_pm_ops,
.of_match_table = rtc_dt_ids, .of_match_table = rtc_dt_ids,
}, },
......
...@@ -95,7 +95,6 @@ static int __init sun4v_rtc_probe(struct platform_device *pdev) ...@@ -95,7 +95,6 @@ static int __init sun4v_rtc_probe(struct platform_device *pdev)
static struct platform_driver sun4v_rtc_driver = { static struct platform_driver sun4v_rtc_driver = {
.driver = { .driver = {
.name = "rtc-sun4v", .name = "rtc-sun4v",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -511,7 +511,6 @@ static struct platform_driver sunxi_rtc_driver = { ...@@ -511,7 +511,6 @@ static struct platform_driver sunxi_rtc_driver = {
.remove = sunxi_rtc_remove, .remove = sunxi_rtc_remove,
.driver = { .driver = {
.name = "sunxi-rtc", .name = "sunxi-rtc",
.owner = THIS_MODULE,
.of_match_table = sunxi_rtc_dt_ids, .of_match_table = sunxi_rtc_dt_ids,
}, },
}; };
......
...@@ -420,7 +420,6 @@ static struct platform_driver tegra_rtc_driver = { ...@@ -420,7 +420,6 @@ static struct platform_driver tegra_rtc_driver = {
.shutdown = tegra_rtc_shutdown, .shutdown = tegra_rtc_shutdown,
.driver = { .driver = {
.name = "tegra_rtc", .name = "tegra_rtc",
.owner = THIS_MODULE,
.of_match_table = tegra_rtc_dt_match, .of_match_table = tegra_rtc_dt_match,
.pm = &tegra_rtc_pm_ops, .pm = &tegra_rtc_pm_ops,
}, },
......
...@@ -129,7 +129,6 @@ static struct platform_driver test_driver = { ...@@ -129,7 +129,6 @@ static struct platform_driver test_driver = {
.remove = test_remove, .remove = test_remove,
.driver = { .driver = {
.name = "rtc-test", .name = "rtc-test",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -94,7 +94,6 @@ static int tile_rtc_probe(struct platform_device *dev) ...@@ -94,7 +94,6 @@ static int tile_rtc_probe(struct platform_device *dev)
static struct platform_driver tile_rtc_platform_driver = { static struct platform_driver tile_rtc_platform_driver = {
.driver = { .driver = {
.name = "rtc-tile", .name = "rtc-tile",
.owner = THIS_MODULE,
}, },
.probe = tile_rtc_probe, .probe = tile_rtc_probe,
}; };
......
...@@ -337,7 +337,6 @@ static SIMPLE_DEV_PM_OPS(tps6586x_pm_ops, tps6586x_rtc_suspend, ...@@ -337,7 +337,6 @@ static SIMPLE_DEV_PM_OPS(tps6586x_pm_ops, tps6586x_rtc_suspend,
static struct platform_driver tps6586x_rtc_driver = { static struct platform_driver tps6586x_rtc_driver = {
.driver = { .driver = {
.name = "tps6586x-rtc", .name = "tps6586x-rtc",
.owner = THIS_MODULE,
.pm = &tps6586x_pm_ops, .pm = &tps6586x_pm_ops,
}, },
.probe = tps6586x_rtc_probe, .probe = tps6586x_rtc_probe,
......
...@@ -326,7 +326,6 @@ static struct platform_driver tps65910_rtc_driver = { ...@@ -326,7 +326,6 @@ static struct platform_driver tps65910_rtc_driver = {
.probe = tps65910_rtc_probe, .probe = tps65910_rtc_probe,
.remove = tps65910_rtc_remove, .remove = tps65910_rtc_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "tps65910-rtc", .name = "tps65910-rtc",
.pm = &tps65910_rtc_pm_ops, .pm = &tps65910_rtc_pm_ops,
}, },
......
...@@ -324,7 +324,6 @@ static SIMPLE_DEV_PM_OPS(tps80031_pm_ops, tps80031_rtc_suspend, ...@@ -324,7 +324,6 @@ static SIMPLE_DEV_PM_OPS(tps80031_pm_ops, tps80031_rtc_suspend,
static struct platform_driver tps80031_rtc_driver = { static struct platform_driver tps80031_rtc_driver = {
.driver = { .driver = {
.name = "tps80031-rtc", .name = "tps80031-rtc",
.owner = THIS_MODULE,
.pm = &tps80031_pm_ops, .pm = &tps80031_pm_ops,
}, },
.probe = tps80031_rtc_probe, .probe = tps80031_rtc_probe,
......
...@@ -608,7 +608,6 @@ static struct platform_driver twl4030rtc_driver = { ...@@ -608,7 +608,6 @@ static struct platform_driver twl4030rtc_driver = {
.remove = twl_rtc_remove, .remove = twl_rtc_remove,
.shutdown = twl_rtc_shutdown, .shutdown = twl_rtc_shutdown,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "twl_rtc", .name = "twl_rtc",
.pm = &twl_rtc_pm_ops, .pm = &twl_rtc_pm_ops,
.of_match_table = of_match_ptr(twl_rtc_of_match), .of_match_table = of_match_ptr(twl_rtc_of_match),
......
...@@ -287,7 +287,6 @@ static struct platform_driver tx4939_rtc_driver = { ...@@ -287,7 +287,6 @@ static struct platform_driver tx4939_rtc_driver = {
.remove = __exit_p(tx4939_rtc_remove), .remove = __exit_p(tx4939_rtc_remove),
.driver = { .driver = {
.name = "tx4939rtc", .name = "tx4939rtc",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -382,7 +382,6 @@ static struct platform_driver rtc_device_driver = { ...@@ -382,7 +382,6 @@ static struct platform_driver rtc_device_driver = {
.remove = rtc_remove, .remove = rtc_remove,
.driver = { .driver = {
.name = "v3020", .name = "v3020",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -375,7 +375,6 @@ static struct platform_driver rtc_platform_driver = { ...@@ -375,7 +375,6 @@ static struct platform_driver rtc_platform_driver = {
.probe = rtc_probe, .probe = rtc_probe,
.driver = { .driver = {
.name = rtc_name, .name = rtc_name,
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -277,7 +277,6 @@ static struct platform_driver vt8500_rtc_driver = { ...@@ -277,7 +277,6 @@ static struct platform_driver vt8500_rtc_driver = {
.remove = vt8500_rtc_remove, .remove = vt8500_rtc_remove,
.driver = { .driver = {
.name = "vt8500-rtc", .name = "vt8500-rtc",
.owner = THIS_MODULE,
.of_match_table = wmt_dt_ids, .of_match_table = wmt_dt_ids,
}, },
}; };
......
...@@ -264,7 +264,6 @@ static struct platform_driver xgene_rtc_driver = { ...@@ -264,7 +264,6 @@ static struct platform_driver xgene_rtc_driver = {
.probe = xgene_rtc_probe, .probe = xgene_rtc_probe,
.remove = xgene_rtc_remove, .remove = xgene_rtc_remove,
.driver = { .driver = {
.owner = THIS_MODULE,
.name = "xgene-rtc", .name = "xgene-rtc",
.pm = &xgene_rtc_pm_ops, .pm = &xgene_rtc_pm_ops,
.of_match_table = of_match_ptr(xgene_rtc_of_match), .of_match_table = of_match_ptr(xgene_rtc_of_match),
......
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