From: Johan Hovold Date: Fri, 8 Jan 2016 19:13:42 +0000 (+0100) Subject: greybus: core: fix greybus driver registration X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3c48d1b8a5a9571c9107fc7f2b5aea31d458fd18;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git greybus: core: fix greybus driver registration Add missing bus type to driver structure when registering a greybus driver. Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- 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;