projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be6ec64
)
w1: omap-hdq: convert to module_platform_driver
author
Felipe Balbi
<
[email protected]
>
Wed, 25 Jul 2012 12:05:29 +0000
(15:05 +0300)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 16 Aug 2012 16:58:43 +0000
(09:58 -0700)
trivial patch, no functional changes.
Signed-off-by: Felipe Balbi <
[email protected]
>
Acked-by: Evgeniy Polyakov <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/w1/masters/omap_hdq.c
patch
|
blob
|
history
diff --git
a/drivers/w1/masters/omap_hdq.c
b/drivers/w1/masters/omap_hdq.c
index ee427975bd82e5a86a3125e478c93a4a122a280d..0427c2c60eab002e1096b67d4891d140b307a4f3 100644
(file)
--- 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)
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");