diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 23:47:06 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-05 12:08:31 -0400 |
commit | bbc48c6aaab9cff03e6e966bf752c3b7ad91d16a (patch) | |
tree | 8215c97d4f5e7926a100b31503891495728c8235 /drivers/mfd/ab3100-otp.c | |
parent | 408a3fa867be13844af13bcbba25e70232fd99e5 (diff) |
mfd: ab3100-otp: use module_platform_driver_probe()
This patch uses module_platform_driver_probe() macro which makes
the code smaller and simpler.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/ab3100-otp.c')
-rw-r--r-- | drivers/mfd/ab3100-otp.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/mfd/ab3100-otp.c b/drivers/mfd/ab3100-otp.c index 8440010eb2b8..d7ce016029fa 100644 --- a/drivers/mfd/ab3100-otp.c +++ b/drivers/mfd/ab3100-otp.c | |||
@@ -248,19 +248,7 @@ static struct platform_driver ab3100_otp_driver = { | |||
248 | .remove = __exit_p(ab3100_otp_remove), | 248 | .remove = __exit_p(ab3100_otp_remove), |
249 | }; | 249 | }; |
250 | 250 | ||
251 | static int __init ab3100_otp_init(void) | 251 | module_platform_driver_probe(ab3100_otp_driver, ab3100_otp_probe); |
252 | { | ||
253 | return platform_driver_probe(&ab3100_otp_driver, | ||
254 | ab3100_otp_probe); | ||
255 | } | ||
256 | |||
257 | static void __exit ab3100_otp_exit(void) | ||
258 | { | ||
259 | platform_driver_unregister(&ab3100_otp_driver); | ||
260 | } | ||
261 | |||
262 | module_init(ab3100_otp_init); | ||
263 | module_exit(ab3100_otp_exit); | ||
264 | 252 | ||
265 | MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>"); | 253 | MODULE_AUTHOR("Linus Walleij <linus.walleij@stericsson.com>"); |
266 | MODULE_DESCRIPTION("AB3100 OTP Readout Driver"); | 254 | MODULE_DESCRIPTION("AB3100 OTP Readout Driver"); |