diff options
author | Greg Kroah-Hartman | 2014-12-24 22:01:42 +0100 |
---|---|---|
committer | Greg Kroah-Hartman | 2015-01-02 22:05:42 +0100 |
commit | 7dd26263248c6c567c05772959d4d6a21240daa8 (patch) | |
tree | d31bb21432a8a7eb7f293ea66abe90cdde72e877 /drivers/staging/greybus/battery-gb.c | |
parent | greybus: vibrator-gb: move vibrator protocol to a stand-alone module. (diff) | |
download | kernel-qcow2-linux-7dd26263248c6c567c05772959d4d6a21240daa8.tar.gz kernel-qcow2-linux-7dd26263248c6c567c05772959d4d6a21240daa8.tar.xz kernel-qcow2-linux-7dd26263248c6c567c05772959d4d6a21240daa8.zip |
greybus: battery-gb: move the battery protocol out to a stand-alone module
This moves the battery class protocol to be a stand-alone kernel module.
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
Reviewed-by: Alex Elder <elder@linaro.org>
Diffstat (limited to 'drivers/staging/greybus/battery-gb.c')
-rw-r--r-- | drivers/staging/greybus/battery-gb.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/staging/greybus/battery-gb.c b/drivers/staging/greybus/battery-gb.c index f6b0dd681430..7ce37377bca5 100644 --- a/drivers/staging/greybus/battery-gb.c +++ b/drivers/staging/greybus/battery-gb.c @@ -367,12 +367,6 @@ static struct gb_protocol battery_protocol = { .request_recv = NULL, /* no incoming requests */ }; -int gb_battery_protocol_init(void) -{ - return gb_protocol_register(&battery_protocol); -} +gb_protocol_driver(&battery_protocol); -void gb_battery_protocol_exit(void) -{ - gb_protocol_deregister(&battery_protocol); -} +MODULE_LICENSE("GPL v2"); |