diff options
-rw-r--r-- | drivers/w1/masters/mxc_w1.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/drivers/w1/masters/mxc_w1.c b/drivers/w1/masters/mxc_w1.c index 12c1ab844d80..3fb6c2480d2f 100644 --- a/drivers/w1/masters/mxc_w1.c +++ b/drivers/w1/masters/mxc_w1.c | |||
@@ -191,21 +191,9 @@ static struct platform_driver mxc_w1_driver = { | |||
191 | .name = "mxc_w1", | 191 | .name = "mxc_w1", |
192 | }, | 192 | }, |
193 | .probe = mxc_w1_probe, | 193 | .probe = mxc_w1_probe, |
194 | .remove = mxc_w1_remove, | 194 | .remove = __devexit_p(mxc_w1_remove), |
195 | }; | 195 | }; |
196 | 196 | module_platform_driver(mxc_w1_driver); | |
197 | static int __init mxc_w1_init(void) | ||
198 | { | ||
199 | return platform_driver_register(&mxc_w1_driver); | ||
200 | } | ||
201 | |||
202 | static void mxc_w1_exit(void) | ||
203 | { | ||
204 | platform_driver_unregister(&mxc_w1_driver); | ||
205 | } | ||
206 | |||
207 | module_init(mxc_w1_init); | ||
208 | module_exit(mxc_w1_exit); | ||
209 | 197 | ||
210 | MODULE_LICENSE("GPL"); | 198 | MODULE_LICENSE("GPL"); |
211 | MODULE_AUTHOR("Freescale Semiconductors Inc"); | 199 | MODULE_AUTHOR("Freescale Semiconductors Inc"); |