diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-05 13:47:59 +0900 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-04-05 18:08:45 +0200 |
commit | e8fe6a827939cf723a3871ff455f6346337c649a (patch) | |
tree | c4cad589074bc1ed8c92c2767f36b59fb0cf0f8f /drivers/mfd/htc-pasic3.c | |
parent | bbc48c6aaab9cff03e6e966bf752c3b7ad91d16a (diff) | |
download | linux-e8fe6a827939cf723a3871ff455f6346337c649a.tar.bz2 |
mfd: htc-pasic3: 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>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/htc-pasic3.c')
-rw-r--r-- | drivers/mfd/htc-pasic3.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/mfd/htc-pasic3.c b/drivers/mfd/htc-pasic3.c index 9e5453d21a68..0285fceb99a6 100644 --- a/drivers/mfd/htc-pasic3.c +++ b/drivers/mfd/htc-pasic3.c @@ -208,18 +208,7 @@ static struct platform_driver pasic3_driver = { .remove = pasic3_remove, }; -static int __init pasic3_base_init(void) -{ - return platform_driver_probe(&pasic3_driver, pasic3_probe); -} - -static void __exit pasic3_base_exit(void) -{ - platform_driver_unregister(&pasic3_driver); -} - -module_init(pasic3_base_init); -module_exit(pasic3_base_exit); +module_platform_driver_probe(pasic3_driver, pasic3_probe); MODULE_AUTHOR("Philipp Zabel <philipp.zabel@gmail.com>"); MODULE_DESCRIPTION("Core driver for HTC PASIC3"); |