diff options
| author | Srinivas Kandagatla <srinivas.kandagatla@st.com> | 2012-10-12 03:11:20 -0400 |
|---|---|---|
| committer | Olof Johansson <olof@lixom.net> | 2012-11-06 08:59:59 -0500 |
| commit | 6ed68a6d83e4497dc33581ccc82b4fa3e7e8226d (patch) | |
| tree | b1c3fe9ff0b5898c04f80c7f128c96b1be251b0c | |
| parent | 6767d05ed8f902ee3fcdc2e42cccb29524cf19e5 (diff) | |
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>
| -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 = { | |||
| 384 | .probe = pxa3xx_u2d_probe, | 384 | .probe = pxa3xx_u2d_probe, |
| 385 | .remove = pxa3xx_u2d_remove, | 385 | .remove = pxa3xx_u2d_remove, |
| 386 | }; | 386 | }; |
| 387 | 387 | module_platform_driver(pxa3xx_u2d_ulpi_driver); | |
| 388 | static int pxa3xx_u2d_ulpi_init(void) | ||
| 389 | { | ||
| 390 | return platform_driver_register(&pxa3xx_u2d_ulpi_driver); | ||
| 391 | } | ||
| 392 | module_init(pxa3xx_u2d_ulpi_init); | ||
| 393 | |||
| 394 | static void __exit pxa3xx_u2d_ulpi_exit(void) | ||
| 395 | { | ||
| 396 | platform_driver_unregister(&pxa3xx_u2d_ulpi_driver); | ||
| 397 | } | ||
| 398 | module_exit(pxa3xx_u2d_ulpi_exit); | ||
| 399 | 388 | ||
| 400 | MODULE_DESCRIPTION("PXA3xx U2D ULPI driver"); | 389 | MODULE_DESCRIPTION("PXA3xx U2D ULPI driver"); |
| 401 | MODULE_AUTHOR("Igor Grinberg"); | 390 | MODULE_AUTHOR("Igor Grinberg"); |
