summaryrefslogtreecommitdiffstats
path: root/drivers/w1
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/w1
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/w1')
-rw-r--r--drivers/w1/masters/w1-gpio.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/w1/masters/w1-gpio.c b/drivers/w1/masters/w1-gpio.c
index 0a3794d..946e9d3 100644
--- a/drivers/w1/masters/w1-gpio.c
+++ b/drivers/w1/masters/w1-gpio.c
@@ -108,9 +108,4 @@ static struct driver_d w1_gpio_driver = {
.name = "w1-gpio",
.probe = w1_gpio_probe,
};
-
-static int __init w1_gpio_init(void)
-{
- return platform_driver_register(&w1_gpio_driver);
-}
-device_initcall(w1_gpio_init);
+device_platform_driver(w1_gpio_driver);