From 3d809e1506cf4c25c387936a154438466870c2e9 Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Wed, 25 Jul 2012 15:05:29 +0300 Subject: [PATCH] --- yaml --- r: 324314 b: refs/heads/master c: 8650bbb58062f183ce5d983b6ba4ddd1e9b67f4a h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/w1/masters/omap_hdq.c | 14 +------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/[refs] b/[refs] index 195050624a24..fbd01a7159f9 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: be6ec64a1bb04d6c54f77e8e445e83ea8f1e17e1 +refs/heads/master: 8650bbb58062f183ce5d983b6ba4ddd1e9b67f4a diff --git a/trunk/drivers/w1/masters/omap_hdq.c b/trunk/drivers/w1/masters/omap_hdq.c index ee427975bd82..0427c2c60eab 100644 --- a/trunk/drivers/w1/masters/omap_hdq.c +++ b/trunk/drivers/w1/masters/omap_hdq.c @@ -652,19 +652,7 @@ static int __devexit omap_hdq_remove(struct platform_device *pdev) return 0; } -static int __init -omap_hdq_init(void) -{ - return platform_driver_register(&omap_hdq_driver); -} -module_init(omap_hdq_init); - -static void __exit -omap_hdq_exit(void) -{ - platform_driver_unregister(&omap_hdq_driver); -} -module_exit(omap_hdq_exit); +module_platform_driver(omap_hdq_driver); module_param(w1_id, int, S_IRUSR); MODULE_PARM_DESC(w1_id, "1-wire id for the slave detection");