]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
greybus: fix gb_add_module() by enabling the device_add()
authorMatt Porter <mporter@linaro.org>
Fri, 3 Oct 2014 17:38:24 +0000 (13:38 -0400)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 3 Oct 2014 18:51:58 +0000 (11:51 -0700)
commit32dff13d21120cfbf6196347f7bc74e9236fce1e
treece8a5be03d432c6471a21065be7becdeb49de652
parent2f30d9ffeee15fb655f1f5e288e69e46a3059b39
greybus: fix gb_add_module() by enabling the device_add()

Without the gb_module device being added, we have no parent
device for any of the greybus subdevs to be added. Do the
device_add() before creating subdevs as we need it then
to register any children in the various greybus protocol
drivers.

Signed-off-by: Matt Porter <mporter@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/core.c