OSDN Git Service

greybus: vibrator-gb: move vibrator protocol to a stand-alone module.
authorGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Dec 2014 21:01:41 +0000 (13:01 -0800)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 2 Jan 2015 21:05:42 +0000 (13:05 -0800)
commit66b676fd88a681b149e98c462e2c0337c2848770
tree0cc4c19957b783d83001b5eb6a138fc5e5171d97
parent12a5dfc9acf690504e7266a8f310702bc9e6872c
greybus: vibrator-gb: move vibrator protocol to a stand-alone module.

We can't use the gb_protocol_driver() macro here as we need to do some
init and exit logic when loading and removing, so "open code" the module
init and exit functions.

Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/staging/greybus/Makefile
drivers/staging/greybus/protocol.c
drivers/staging/greybus/protocol.h
drivers/staging/greybus/vibrator-gb.c