Commit 91fb5386 authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman

[PATCH] Add ocp_bus_type probe and remove methods

Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent ad3ed31c
...@@ -189,6 +189,8 @@ ocp_device_resume(struct device *dev) ...@@ -189,6 +189,8 @@ ocp_device_resume(struct device *dev)
struct bus_type ocp_bus_type = { struct bus_type ocp_bus_type = {
.name = "ocp", .name = "ocp",
.match = ocp_device_match, .match = ocp_device_match,
.probe = ocp_driver_probe,
.remove = ocp_driver_remove,
.suspend = ocp_device_suspend, .suspend = ocp_device_suspend,
.resume = ocp_device_resume, .resume = ocp_device_resume,
}; };
...@@ -210,8 +212,6 @@ ocp_register_driver(struct ocp_driver *drv) ...@@ -210,8 +212,6 @@ ocp_register_driver(struct ocp_driver *drv)
/* initialize common driver fields */ /* initialize common driver fields */
drv->driver.name = drv->name; drv->driver.name = drv->name;
drv->driver.bus = &ocp_bus_type; drv->driver.bus = &ocp_bus_type;
drv->driver.probe = ocp_device_probe;
drv->driver.remove = ocp_device_remove;
/* register with core */ /* register with core */
return driver_register(&drv->driver); return driver_register(&drv->driver);
......
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