alistair23-linux/drivers/gpu/drm/udl
Amitoj Kaur Chawla a6ddd2f1b9 drm/udl: Use module_usb_driver
Macro module_usb_driver is used for drivers whose init and exit paths
only register and unregister to usb API. So remove boilerplate code to
make code simpler by using module_usb_driver.

This change was made with the help of the following Coccinelle
semantic patch:

//<smpl>
@a@
identifier f, x;
@@
-static f(...) { return usb_register(&x); }

@b depends on a@
identifier e, a.x;
@@
-static e(...) { usb_deregister(&x); }

@c depends on a && b@
identifier a.f;
declarer name module_init;
@@
-module_init(f);

@d depends on a && b && c@
identifier b.e, a.x;
declarer name module_exit;
declarer name module_usb_driver;
@@
-module_exit(e);
+module_usb_driver(x);
//</smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20160217121327.GA29682@amitoj-Inspiron-3542
2016-02-17 14:19:30 +01:00
..
Kconfig drm: merge drm_usb into udl 2014-09-10 17:43:27 +10:00
Makefile drm/udl: add support to export a handle to a FD on UDL. 2014-11-20 11:41:37 +10:00
udl_connector.c drm/udl: Constify function pointer structs 2015-12-15 13:48:54 +01:00
udl_dmabuf.c dma-buf: cleanup dma_buf_export() to make it easily extensible 2015-04-21 14:47:16 +05:30
udl_drv.c drm/udl: Use module_usb_driver 2016-02-17 14:19:30 +01:00
udl_drv.h drm: Pass the user drm_mode_fb_cmd2 as const to .fb_create() 2015-11-24 11:47:38 +01:00
udl_encoder.c drm/udl: removed optional dummy encoder mode_fixup function. 2016-02-16 15:30:12 +01:00
udl_fb.c dma-buf: Remove range-based flush 2016-02-09 09:25:22 +01:00
udl_gem.c drm/udl: handle page mapping in dmabuf export. 2014-11-26 10:03:00 +10:00
udl_main.c drm: merge drm_usb into udl 2014-09-10 17:43:27 +10:00
udl_modeset.c drm/udl: Constify function pointer structs 2015-12-15 13:48:54 +01:00
udl_transfer.c drm/udl: optimize udl_compress_hline16 (v2) 2015-01-31 10:08:47 +10:00