Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Srinivas Kandagatla and committed by
Olof Johansson
6ed68a6d 6767d05e

+1 -12
+1 -12
arch/arm/mach-pxa/pxa3xx-ulpi.c
··· 384 384 .probe = pxa3xx_u2d_probe, 385 385 .remove = pxa3xx_u2d_remove, 386 386 }; 387 - 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); 387 + module_platform_driver(pxa3xx_u2d_ulpi_driver); 399 388 400 389 MODULE_DESCRIPTION("PXA3xx U2D ULPI driver"); 401 390 MODULE_AUTHOR("Igor Grinberg");