diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 17:26:53 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-08 18:38:15 +0100 |
commit | 477c17dba125b9b500763f5437fa5051f75b95bf (patch) | |
tree | 12c162b894d54b7e6e37cc15a31f33e5b888e044 /drivers/ide/tx4939ide.c | |
parent | ide: tx4938ide: use module_platform_driver_probe() (diff) | |
download | linux-477c17dba125b9b500763f5437fa5051f75b95bf.tar.xz linux-477c17dba125b9b500763f5437fa5051f75b95bf.zip |
ide: tx4939ide: 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: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/ide/tx4939ide.c')
-rw-r--r-- | drivers/ide/tx4939ide.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ide/tx4939ide.c b/drivers/ide/tx4939ide.c index c0ab800b7bb3..4ecdee5eca83 100644 --- a/drivers/ide/tx4939ide.c +++ b/drivers/ide/tx4939ide.c @@ -624,18 +624,7 @@ static struct platform_driver tx4939ide_driver = { .resume = tx4939ide_resume, }; -static int __init tx4939ide_init(void) -{ - return platform_driver_probe(&tx4939ide_driver, tx4939ide_probe); -} - -static void __exit tx4939ide_exit(void) -{ - platform_driver_unregister(&tx4939ide_driver); -} - -module_init(tx4939ide_init); -module_exit(tx4939ide_exit); +module_platform_driver_probe(tx4939ide_driver, tx4939ide_probe); MODULE_DESCRIPTION("TX4939 internal IDE driver"); MODULE_LICENSE("GPL"); |