[PATCH 0/8 net-next] irda: use module_driver in a new helper

From: Fabian Frederick
Date: Wed Jul 13 2016 - 14:30:31 EST


Currently a lot of irda drivers use generic init/exit functions.
This small patchset adds a module_sirdev_driver() macro
calling module_driver() which implicitely generates init/exit
functions returning register/unregister().

This results in a lot of code removal.

(See include/linux/device.h/module_driver() for further details).

Note: compiled but untested.

Fabian Frederick (8):
irda: sir-dev: add module_sirdev_driver() helper
irda: actl200l-sir: use module_sirdev_driver() helper
irda: mcp2120-sir: use module_sirdev_driver() helper
irda: esi-sir: use module_sirdev_driver() helper
irda: girbil-sir: use module_sirdev_driver() helper
irda: old_belkin-sir: use module_sirdev_driver() helper
irda: litelink-sir: use module_sirdev_driver() helper
irda: ma600-sir: use module_sirdev_driver() helper

drivers/net/irda/act200l-sir.c | 15 ++-------------
drivers/net/irda/esi-sir.c | 16 ++--------------
drivers/net/irda/girbil-sir.c | 15 ++-------------
drivers/net/irda/litelink-sir.c | 28 ++--------------------------
drivers/net/irda/ma600-sir.c | 17 ++---------------
drivers/net/irda/mcp2120-sir.c | 15 ++-------------
drivers/net/irda/old_belkin-sir.c | 15 ++-------------
drivers/net/irda/sir-dev.h | 7 +++++++
8 files changed, 21 insertions(+), 107 deletions(-)

--
2.8.1