pata_samsung_cf: use module_platform_driver_probe()
PATCH 1/1 pata_samsung_cf: 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 <[email protected]>
--- drivers/ata/pata_samsung_cf.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
drivers/ata/pata_samsung_cf.c +1 -12
@@ -661,18 +661,7 @@ static struct platform_driver pata_s3c_driver = { }, }; -static int __init pata_s3c_init (void ) -{ -return platform_driver_probe (&pata_s3c_driver, pata_s3c_probe); -} - -static void __exit pata_s3c_exit(void) -{ -platform_driver_unregister (&pata_s3c_driver); -} - -module_init (pata_s3c_init); -module_exit (pata_s3c_exit); +module_platform_driver_probe (pata_s3c_driver, pata_s3c_probe);MODULE_AUTHOR ("Abhilash Kesavan, <[email protected]>" );MODULE_DESCRIPTION ("low-level driver for Samsung PATA controller" );
Signature · 1 line
1.7.2.5
Jeff Garzik
AppliedQuoted 7 lines · Jingoo Han
This patch uses
module_platform_driver_probe()macro which makes the code smaller and simpler.Signed-off-by Jingoo Han <[email protected]>--- drivers/ata/pata_samsung_cf.c | 13 +------------ 1 files changed, 1 insertions(+), 12 deletions(-)
applied