Commit 3c48d1b8 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

greybus: core: fix greybus driver registration

Add missing bus type to driver structure when registering a greybus
driver.
Signed-off-by: default avatarJohan Hovold <johan@hovoldconsulting.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 13da9e11
...@@ -162,6 +162,7 @@ int greybus_register_driver(struct greybus_driver *driver, struct module *owner, ...@@ -162,6 +162,7 @@ int greybus_register_driver(struct greybus_driver *driver, struct module *owner,
if (greybus_disabled()) if (greybus_disabled())
return -ENODEV; return -ENODEV;
driver->driver.bus = &greybus_bus_type;
driver->driver.name = driver->name; driver->driver.name = driver->name;
driver->driver.probe = greybus_probe; driver->driver.probe = greybus_probe;
driver->driver.remove = greybus_remove; driver->driver.remove = greybus_remove;
......
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