diff options
author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-12 09:11:20 +0200 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-11-06 14:59:59 +0100 |
commit | 6ed68a6d83e4497dc33581ccc82b4fa3e7e8226d (patch) | |
tree | b1c3fe9ff0b5898c04f80c7f128c96b1be251b0c /arch/arm/mach-pxa | |
parent | Merge branch 'imx/multi-platform' of git://git.linaro.org/people/shawnguo/lin... (diff) | |
download | linux-6ed68a6d83e4497dc33581ccc82b4fa3e7e8226d.tar.xz linux-6ed68a6d83e4497dc33581ccc82b4fa3e7e8226d.zip |
ARM: pxa: use module_platform_driver macro
This patch removes some code duplication by using
module_platform_driver.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@st.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Signed-off-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-pxa')
-rw-r--r-- | arch/arm/mach-pxa/pxa3xx-ulpi.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/arch/arm/mach-pxa/pxa3xx-ulpi.c b/arch/arm/mach-pxa/pxa3xx-ulpi.c index 7dbe3ccf1993..e329ccefd364 100644 --- a/arch/arm/mach-pxa/pxa3xx-ulpi.c +++ b/arch/arm/mach-pxa/pxa3xx-ulpi.c @@ -384,18 +384,7 @@ static struct platform_driver pxa3xx_u2d_ulpi_driver = { .probe = pxa3xx_u2d_probe, .remove = pxa3xx_u2d_remove, }; - -static int pxa3xx_u2d_ulpi_init(void) -{ - return platform_driver_register(&pxa3xx_u2d_ulpi_driver); -} -module_init(pxa3xx_u2d_ulpi_init); - -static void __exit pxa3xx_u2d_ulpi_exit(void) -{ - platform_driver_unregister(&pxa3xx_u2d_ulpi_driver); -} -module_exit(pxa3xx_u2d_ulpi_exit); +module_platform_driver(pxa3xx_u2d_ulpi_driver); MODULE_DESCRIPTION("PXA3xx U2D ULPI driver"); MODULE_AUTHOR("Igor Grinberg"); |