diff options
Diffstat (limited to 'drivers/video/udlfb.c')
-rw-r--r-- | drivers/video/udlfb.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/drivers/video/udlfb.c b/drivers/video/udlfb.c index 3473e75ce785..1f868d0187a2 100644 --- a/drivers/video/udlfb.c +++ b/drivers/video/udlfb.c | |||
@@ -1761,24 +1761,7 @@ static struct usb_driver dlfb_driver = { | |||
1761 | .id_table = id_table, | 1761 | .id_table = id_table, |
1762 | }; | 1762 | }; |
1763 | 1763 | ||
1764 | static int __init dlfb_module_init(void) | 1764 | module_usb_driver(dlfb_driver); |
1765 | { | ||
1766 | int res; | ||
1767 | |||
1768 | res = usb_register(&dlfb_driver); | ||
1769 | if (res) | ||
1770 | err("usb_register failed. Error number %d", res); | ||
1771 | |||
1772 | return res; | ||
1773 | } | ||
1774 | |||
1775 | static void __exit dlfb_module_exit(void) | ||
1776 | { | ||
1777 | usb_deregister(&dlfb_driver); | ||
1778 | } | ||
1779 | |||
1780 | module_init(dlfb_module_init); | ||
1781 | module_exit(dlfb_module_exit); | ||
1782 | 1765 | ||
1783 | static void dlfb_urb_completion(struct urb *urb) | 1766 | static void dlfb_urb_completion(struct urb *urb) |
1784 | { | 1767 | { |