summaryrefslogtreecommitdiffstats
path: root/drivers/ata/pata_at32.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-05 02:39:47 +0100
committerJeff Garzik <jgarzik@redhat.com>2013-04-04 01:52:10 +0200
commitbdfa2e7e5a46d7dcd9ff127fdf198faf90f0e215 (patch)
tree9365f5cbcf5ce760f0ed0f1053068548a364321e /drivers/ata/pata_at32.c
parent[libata] Fix HDIO_DRIVE_* ioctl() Linux 3.9 regression (diff)
downloadlinux-bdfa2e7e5a46d7dcd9ff127fdf198faf90f0e215.tar.xz
linux-bdfa2e7e5a46d7dcd9ff127fdf198faf90f0e215.zip
pata_at32: 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_at32.c')
-rw-r--r--drivers/ata/pata_at32.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ata/pata_at32.c b/drivers/ata/pata_at32.c
index 36f189c7ee8c..8d493b4a0961 100644
--- a/drivers/ata/pata_at32.c
+++ b/drivers/ata/pata_at32.c
@@ -393,18 +393,7 @@ static struct platform_driver pata_at32_driver = {
},
};
-static int __init pata_at32_init(void)
-{
- return platform_driver_probe(&pata_at32_driver, pata_at32_probe);
-}
-
-static void __exit pata_at32_exit(void)
-{
- platform_driver_unregister(&pata_at32_driver);
-}
-
-module_init(pata_at32_init);
-module_exit(pata_at32_exit);
+module_platform_driver_probe(pata_at32_driver, pata_at32_probe);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("AVR32 SMC/CFC PATA Driver");