.name = "davinci_mmc",
.owner = THIS_MODULE,
.pm = davinci_mmcsd_pm_ops,
+ .of_match_table = of_match_ptr(davinci_mmc_dt_ids),
},
.remove = __exit_p(davinci_mmcsd_remove),
+ .id_table = davinci_mmc_devtype,
};
- static int __init davinci_mmcsd_init(void)
- {
- return platform_driver_probe(&davinci_mmcsd_driver,
- davinci_mmcsd_probe);
- }
- module_init(davinci_mmcsd_init);
-
- static void __exit davinci_mmcsd_exit(void)
- {
- platform_driver_unregister(&davinci_mmcsd_driver);
- }
- module_exit(davinci_mmcsd_exit);
+ module_platform_driver_probe(davinci_mmcsd_driver, davinci_mmcsd_probe);
MODULE_AUTHOR("Texas Instruments India");
MODULE_LICENSE("GPL");