summaryrefslogtreecommitdiffstats
path: root/drivers/media/rc/fintek-cir.c
diff options
context:
space:
mode:
authorPeter Huewe <PeterHuewe@gmx.de>2015-03-16 21:46:34 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2015-03-18 22:39:17 +0100
commitaf638a04070f54c22c2fe7523e742d06b5f980bf (patch)
treeb22fcae41b48715fe85ae8e4cb0eb92d4df04326 /drivers/media/rc/fintek-cir.c
parent6a5333092e4674c1e1f7de05ce6a167273f5afdb (diff)
downloadlinux-stable-af638a04070f54c22c2fe7523e742d06b5f980bf.tar.gz
linux-stable-af638a04070f54c22c2fe7523e742d06b5f980bf.tar.bz2
linux-stable-af638a04070f54c22c2fe7523e742d06b5f980bf.zip
PNP: media/rc: Use module_pnp_driver to register driver
Removing some boilerplate by using module_pnp_driver instead of calling register and unregister in the otherwise empty init/exit functions Signed-off-by: Peter Huewe <peterhuewe@gmx.de> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/media/rc/fintek-cir.c')
-rw-r--r--drivers/media/rc/fintek-cir.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/media/rc/fintek-cir.c b/drivers/media/rc/fintek-cir.c
index b5167573240e..5c63c2ec6183 100644
--- a/drivers/media/rc/fintek-cir.c
+++ b/drivers/media/rc/fintek-cir.c
@@ -684,16 +684,6 @@ static struct pnp_driver fintek_driver = {
.shutdown = fintek_shutdown,
};
-static int __init fintek_init(void)
-{
- return pnp_register_driver(&fintek_driver);
-}
-
-static void __exit fintek_exit(void)
-{
- pnp_unregister_driver(&fintek_driver);
-}
-
module_param(debug, int, S_IRUGO | S_IWUSR);
MODULE_PARM_DESC(debug, "Enable debugging output");
@@ -703,5 +693,4 @@ MODULE_DESCRIPTION(FINTEK_DESCRIPTION " driver");
MODULE_AUTHOR("Jarod Wilson <jarod@redhat.com>");
MODULE_LICENSE("GPL");
-module_init(fintek_init);
-module_exit(fintek_exit);
+module_pnp_driver(fintek_driver);