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 <grant.likely@secretlab.ca>
This commit is contained in:
@@ -650,8 +650,7 @@ static void mpc5121_nfc_free(struct device *dev, struct mtd_info *mtd)
|
||||
iounmap(prv->csreg);
|
||||
}
|
||||
|
||||
static int __devinit mpc5121_nfc_probe(struct platform_device *op,
|
||||
const struct of_device_id *match)
|
||||
static int __devinit mpc5121_nfc_probe(struct platform_device *op)
|
||||
{
|
||||
struct device_node *rootnode, *dn = op->dev.of_node;
|
||||
struct device *dev = &op->dev;
|
||||
@@ -891,7 +890,7 @@ static struct of_device_id mpc5121_nfc_match[] __devinitdata = {
|
||||
{},
|
||||
};
|
||||
|
||||
static struct of_platform_driver mpc5121_nfc_driver = {
|
||||
static struct platform_driver mpc5121_nfc_driver = {
|
||||
.probe = mpc5121_nfc_probe,
|
||||
.remove = __devexit_p(mpc5121_nfc_remove),
|
||||
.driver = {
|
||||
@@ -903,14 +902,14 @@ static struct of_platform_driver mpc5121_nfc_driver = {
|
||||
|
||||
static int __init mpc5121_nfc_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&mpc5121_nfc_driver);
|
||||
return platform_driver_register(&mpc5121_nfc_driver);
|
||||
}
|
||||
|
||||
module_init(mpc5121_nfc_init);
|
||||
|
||||
static void __exit mpc5121_nfc_cleanup(void)
|
||||
{
|
||||
of_unregister_platform_driver(&mpc5121_nfc_driver);
|
||||
platform_driver_unregister(&mpc5121_nfc_driver);
|
||||
}
|
||||
|
||||
module_exit(mpc5121_nfc_cleanup);
|
||||
|
Reference in New Issue
Block a user