summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_samsung_cf.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-04 09:34:42 +0100
committerJeff Garzik <jgarzik@redhat.com>2013-03-04 23:12:52 +0100
commitb186affe0c9d39e4d3152cd34bffea8fe1fa17f4 (patch)
tree18c7afa58a9958480f0ac4f0f2cfc50d495fc94d /drivers/ata/pata_samsung_cf.c
parent[libata] Avoid specialized TLA's in ZPODD's Kconfig (diff)
downloadlinux-b186affe0c9d39e4d3152cd34bffea8fe1fa17f4.tar.xz
linux-b186affe0c9d39e4d3152cd34bffea8fe1fa17f4.zip
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 <jg1.han@samsung.com> Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/ata/pata_samsung_cf.c')
-rw-r--r--drivers/ata/pata_samsung_cf.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/pata_samsung_cf.c b/drivers/ata/pata_samsung_cf.c
index 70b0e01372b3..6ef27e98c508 100644
--- a/drivers/ata/pata_samsung_cf.c
+++ b/drivers/ata/pata_samsung_cf.c
@@ -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, <a.kesavan@samsung.com>");
MODULE_DESCRIPTION("low-level driver for Samsung PATA controller");