diff options
author | Felipe Balbi <balbi@ti.com> | 2012-07-25 08:05:29 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-08-16 12:58:43 -0400 |
commit | 8650bbb58062f183ce5d983b6ba4ddd1e9b67f4a (patch) | |
tree | 2b7580e5ad37c7d0d66c1080d8af692227254b4f /drivers/w1 | |
parent | be6ec64a1bb04d6c54f77e8e445e83ea8f1e17e1 (diff) |
w1: omap-hdq: convert to module_platform_driver
trivial patch, no functional changes.
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Evgeniy Polyakov <zbr@ioremap.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/w1')
-rw-r--r-- | drivers/w1/masters/omap_hdq.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c index ee427975bd82..0427c2c60eab 100644 --- a/drivers/w1/masters/omap_hdq.c +++ b/drivers/w1/masters/omap_hdq.c | |||
@@ -652,19 +652,7 @@ static int __devexit omap_hdq_remove(struct platform_device *pdev) | |||
652 | return 0; | 652 | return 0; |
653 | } | 653 | } |
654 | 654 | ||
655 | static int __init | 655 | module_platform_driver(omap_hdq_driver); |
656 | omap_hdq_init(void) | ||
657 | { | ||
658 | return platform_driver_register(&omap_hdq_driver); | ||
659 | } | ||
660 | module_init(omap_hdq_init); | ||
661 | |||
662 | static void __exit | ||
663 | omap_hdq_exit(void) | ||
664 | { | ||
665 | platform_driver_unregister(&omap_hdq_driver); | ||
666 | } | ||
667 | module_exit(omap_hdq_exit); | ||
668 | 656 | ||
669 | module_param(w1_id, int, S_IRUSR); | 657 | module_param(w1_id, int, S_IRUSR); |
670 | MODULE_PARM_DESC(w1_id, "1-wire id for the slave detection"); | 658 | MODULE_PARM_DESC(w1_id, "1-wire id for the slave detection"); |