summaryrefslogtreecommitdiff
path: root/drivers/staging/greybus/core.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-01-08 20:13:42 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-09 00:41:46 -0800
commit3c48d1b8a5a9571c9107fc7f2b5aea31d458fd18 (patch)
treea39ad49cf8b89449673af9cf7702f20833027e16 /drivers/staging/greybus/core.c
parent13da9e11e9b781e54fc5db6b65bdcdf6dd96022d (diff)
greybus: core: fix greybus driver registration
Add missing bus type to driver structure when registering a greybus driver. Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r--drivers/staging/greybus/core.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c
index 209e1cd62838..c56c0c4a44f5 100644
--- a/drivers/staging/greybus/core.c
+++ b/drivers/staging/greybus/core.c
@@ -162,6 +162,7 @@ int greybus_register_driver(struct greybus_driver *driver, struct module *owner,
if (greybus_disabled())
return -ENODEV;
+ driver->driver.bus = &greybus_bus_type;
driver->driver.name = driver->name;
driver->driver.probe = greybus_probe;
driver->driver.remove = greybus_remove;