Commit 7b97a9fd authored by Patrick Mochel's avatar Patrick Mochel

driver model (arm): change calls of remove_driver() to driver_unregister().

parent 04013dc6
...@@ -1114,7 +1114,7 @@ int ecard_register_driver(struct ecard_driver *drv) ...@@ -1114,7 +1114,7 @@ int ecard_register_driver(struct ecard_driver *drv)
void ecard_remove_driver(struct ecard_driver *drv) void ecard_remove_driver(struct ecard_driver *drv)
{ {
remove_driver(&drv->drv); driver_unregister(&drv->drv);
} }
static int ecard_match(struct device *_dev, struct device_driver *_drv) static int ecard_match(struct device *_dev, struct device_driver *_drv)
......
...@@ -354,7 +354,7 @@ static int __init ps2_init(void) ...@@ -354,7 +354,7 @@ static int __init ps2_init(void)
static void __exit ps2_exit(void) static void __exit ps2_exit(void)
{ {
remove_driver(&ps2_driver.drv); driver_unregister(&ps2_driver.drv);
} }
module_init(ps2_init); module_init(ps2_init);
......
...@@ -297,7 +297,7 @@ static int __init sa1111_drv_pcmcia_init(void) ...@@ -297,7 +297,7 @@ static int __init sa1111_drv_pcmcia_init(void)
static void __exit sa1111_drv_pcmcia_exit(void) static void __exit sa1111_drv_pcmcia_exit(void)
{ {
remove_driver(&pcmcia_driver.drv); driver_unregister(&pcmcia_driver.drv);
} }
module_init(sa1111_drv_pcmcia_init); module_init(sa1111_drv_pcmcia_init);
......
...@@ -413,7 +413,7 @@ static int __init ohci_hcd_sa1111_init (void) ...@@ -413,7 +413,7 @@ static int __init ohci_hcd_sa1111_init (void)
static void __exit ohci_hcd_sa1111_cleanup (void) static void __exit ohci_hcd_sa1111_cleanup (void)
{ {
remove_driver(&ohci_hcd_sa1111_driver.drv); driver_unregister(&ohci_hcd_sa1111_driver.drv);
} }
module_init (ohci_hcd_sa1111_init); module_init (ohci_hcd_sa1111_init);
......
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