diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-05-09 18:15:06 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-05-14 19:13:57 +0200 |
commit | 7c0925eb57785190be3d9f3d173fefb3d791cba0 (patch) | |
tree | f94d1d735e0fbb9ab18523c0ffecdaf724f81005 /drivers/staging/greybus/gpio.c | |
parent | 9b919bdfcc6e9f8b3ea9f813b1604089ea769cfc (diff) |
greybus: gpio: Create separate module
Create separate module for gpio gpbridge driver.
Tested on EVT 1.5 by inserting GP test module, all the devices were
enumerated correctly.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/gpio.c')
-rw-r--r-- | drivers/staging/greybus/gpio.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/staging/greybus/gpio.c b/drivers/staging/greybus/gpio.c index 4f0695b2b20e..adb213fd81b6 100644 --- a/drivers/staging/greybus/gpio.c +++ b/drivers/staging/greybus/gpio.c @@ -747,6 +747,7 @@ static const struct gpbridge_device_id gb_gpio_id_table[] = { { GPBRIDGE_PROTOCOL(GREYBUS_PROTOCOL_GPIO) }, { }, }; +MODULE_DEVICE_TABLE(gpbridge, gb_gpio_id_table); static struct gpbridge_driver gpio_driver = { .name = "gpio", @@ -754,4 +755,6 @@ static struct gpbridge_driver gpio_driver = { .remove = gb_gpio_remove, .id_table = gb_gpio_id_table, }; -gb_gpbridge_builtin_driver(gpio_driver); + +module_gpbridge_driver(gpio_driver); +MODULE_LICENSE("GPL v2"); |