sdio-gb.o \
uart-gb.o \
battery-gb.o \
- vibrator-gb.o \
usb-gb.o
obj-m += greybus.o
obj-m += i2c-gb.o
+obj-m += vibrator-gb.o
obj-m += es1-ap-usb.o
KERNELVER ?= $(shell uname -r)
pr_err("error initializing sdio protocol\n");
ret = false;
}
- if (gb_vibrator_protocol_init()) {
- pr_err("error initializing vibrator protocol\n");
- ret = false;
- }
if (gb_usb_protocol_init()) {
pr_err("error initializing usb protocol\n");
ret = false;
void gb_protocol_exit(void)
{
gb_usb_protocol_exit();
- gb_vibrator_protocol_exit();
gb_sdio_protocol_exit();
gb_uart_protocol_exit();
gb_gpio_protocol_exit();
extern int gb_sdio_protocol_init(void);
extern void gb_sdio_protocol_exit(void);
-extern int gb_vibrator_protocol_init(void);
-extern void gb_vibrator_protocol_exit(void);
-
extern int gb_usb_protocol_init(void);
extern void gb_usb_protocol_exit(void);
.request_recv = NULL, /* no incoming requests */
};
-int gb_vibrator_protocol_init(void)
+static __init int protocol_init(void)
{
int retval;
return gb_protocol_register(&vibrator_protocol);
}
-void gb_vibrator_protocol_exit(void)
+static __exit void protocol_exit(void)
{
gb_protocol_deregister(&vibrator_protocol);
class_unregister(&vibrator_class);
}
+
+module_init(protocol_init);
+module_exit(protocol_exit);
+
+MODULE_LICENSE("GPL v2");