summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2013-02-12 22:08:57 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2013-02-13 09:23:28 +0100
commit6a256321b839534cb3da4b8ffc06c126871a78e3 (patch)
tree0af3a40fc1fa2892b8cab21085e559e4dc56a91d /drivers/misc
parent12ff7635353503e90ffbfe2f69436e4725a64b50 (diff)
downloadbarebox-6a256321b839534cb3da4b8ffc06c126871a78e3.tar.gz
Use new device_platform_driver() macro for drivers
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/jtag.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/misc/jtag.c b/drivers/misc/jtag.c
index 6c5dea4..d302237 100644
--- a/drivers/misc/jtag.c
+++ b/drivers/misc/jtag.c
@@ -376,13 +376,7 @@ static struct driver_d jtag_driver = {
.remove = jtag_remove,
.info = jtag_info,
};
-
-static int jtag_module_init(void)
-{
- return platform_driver_register(&jtag_driver);
-}
-
-device_initcall(jtag_module_init);
+device_platform_driver(jtag_driver);
MODULE_AUTHOR("Davide Rizzo <elpa.rizzo@gmail.com>");
MODULE_AUTHOR("Wjatscheslaw Stoljarski <wjatscheslaw.stoljarski@kiwigrid.com>");