[PATCH] Add of_platform_bus_type probe and remove methods
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c6a09196ba
commit
79f9fb8886
@@ -132,6 +132,8 @@ static int of_device_resume(struct device * dev)
|
|||||||
struct bus_type of_platform_bus_type = {
|
struct bus_type of_platform_bus_type = {
|
||||||
.name = "of_platform",
|
.name = "of_platform",
|
||||||
.match = of_platform_bus_match,
|
.match = of_platform_bus_match,
|
||||||
|
.probe = of_device_probe,
|
||||||
|
.remove = of_device_remove,
|
||||||
.suspend = of_device_suspend,
|
.suspend = of_device_suspend,
|
||||||
.resume = of_device_resume,
|
.resume = of_device_resume,
|
||||||
};
|
};
|
||||||
@@ -150,8 +152,6 @@ int of_register_driver(struct of_platform_driver *drv)
|
|||||||
/* initialize common driver fields */
|
/* initialize common driver fields */
|
||||||
drv->driver.name = drv->name;
|
drv->driver.name = drv->name;
|
||||||
drv->driver.bus = &of_platform_bus_type;
|
drv->driver.bus = &of_platform_bus_type;
|
||||||
drv->driver.probe = of_device_probe;
|
|
||||||
drv->driver.remove = of_device_remove;
|
|
||||||
|
|
||||||
/* register with core */
|
/* register with core */
|
||||||
count = driver_register(&drv->driver);
|
count = driver_register(&drv->driver);
|
||||||
|
Reference in New Issue
Block a user