mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-17 09:42:13 +07:00
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>
This commit is contained in:
parent
13da9e11e9
commit
3c48d1b8a5
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user