Commit 2876ba43 authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman

[PATCH] Add SA1111 bus_type probe/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 e08b7541
...@@ -1247,14 +1247,14 @@ static int sa1111_bus_remove(struct device *dev) ...@@ -1247,14 +1247,14 @@ static int sa1111_bus_remove(struct device *dev)
struct bus_type sa1111_bus_type = { struct bus_type sa1111_bus_type = {
.name = "sa1111-rab", .name = "sa1111-rab",
.match = sa1111_match, .match = sa1111_match,
.probe = sa1111_bus_probe,
.remove = sa1111_bus_remove,
.suspend = sa1111_bus_suspend, .suspend = sa1111_bus_suspend,
.resume = sa1111_bus_resume, .resume = sa1111_bus_resume,
}; };
int sa1111_driver_register(struct sa1111_driver *driver) int sa1111_driver_register(struct sa1111_driver *driver)
{ {
driver->drv.probe = sa1111_bus_probe;
driver->drv.remove = sa1111_bus_remove;
driver->drv.bus = &sa1111_bus_type; driver->drv.bus = &sa1111_bus_type;
return driver_register(&driver->drv); return driver_register(&driver->drv);
} }
......
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