mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
dt: Eliminate of_platform_{,un}register_driver
Final step to eliminate of_platform_bus_type. They're all just platform drivers now. v2: fix type in pasemi_nand.c (thanks to Stephen Rothwell) Signed-off-by: Grant Likely <[email protected]>
This commit is contained in:
parent
793218dfea
commit
1c48a5c93d
27 changed files with 134 additions and 148 deletions
|
|
@ -268,8 +268,7 @@ static const struct rtc_class_ops mpc5121_rtc_ops = {
|
|||
.update_irq_enable = mpc5121_rtc_update_irq_enable,
|
||||
};
|
||||
|
||||
static int __devinit mpc5121_rtc_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
static int __devinit mpc5121_rtc_probe(struct platform_device *op)
|
||||
{
|
||||
struct mpc5121_rtc_data *rtc;
|
||||
int err = 0;
|
||||
|
|
@ -364,7 +363,7 @@ static struct of_device_id mpc5121_rtc_match[] __devinitdata = {
|
|||
{},
|
||||
};
|
||||
|
||||
static struct of_platform_driver mpc5121_rtc_driver = {
|
||||
static struct platform_driver mpc5121_rtc_driver = {
|
||||
.driver = {
|
||||
.name = "mpc5121-rtc",
|
||||
.owner = THIS_MODULE,
|
||||
|
|
@ -376,13 +375,13 @@ static struct of_platform_driver mpc5121_rtc_driver = {
|
|||
|
||||
static int __init mpc5121_rtc_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&mpc5121_rtc_driver);
|
||||
return platform_driver_register(&mpc5121_rtc_driver);
|
||||
}
|
||||
module_init(mpc5121_rtc_init);
|
||||
|
||||
static void __exit mpc5121_rtc_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&mpc5121_rtc_driver);
|
||||
platform_driver_unregister(&mpc5121_rtc_driver);
|
||||
}
|
||||
module_exit(mpc5121_rtc_exit);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue