Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 306955be authored by Russell King's avatar Russell King Committed by Greg Kroah-Hartman
Browse files

[PATCH] Add locomo bus_type probe/remove methods

parent 2876ba43
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1103,14 +1103,14 @@ static int locomo_bus_remove(struct device *dev)
struct bus_type locomo_bus_type = {
struct bus_type locomo_bus_type = {
	.name		= "locomo-bus",
	.name		= "locomo-bus",
	.match		= locomo_match,
	.match		= locomo_match,
	.probe		= locomo_bus_probe,
	.remove		= locomo_bus_remove,
	.suspend	= locomo_bus_suspend,
	.suspend	= locomo_bus_suspend,
	.resume		= locomo_bus_resume,
	.resume		= locomo_bus_resume,
};
};


int locomo_driver_register(struct locomo_driver *driver)
int locomo_driver_register(struct locomo_driver *driver)
{
{
	driver->drv.probe = locomo_bus_probe;
	driver->drv.remove = locomo_bus_remove;
	driver->drv.bus = &locomo_bus_type;
	driver->drv.bus = &locomo_bus_type;
	return driver_register(&driver->drv);
	return driver_register(&driver->drv);
}
}