diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 17:25:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-08 18:38:15 +0100 |
commit | 5abf6c643115aa20905e36b649cbe80ad784f332 (patch) | |
tree | 9fafd3fcbd1e6008654b192b233caef81ccbcdfd /drivers/ide/tx4938ide.c | |
parent | Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/ker... (diff) | |
download | linux-5abf6c643115aa20905e36b649cbe80ad784f332.tar.xz linux-5abf6c643115aa20905e36b649cbe80ad784f332.zip |
ide: tx4938ide: 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/tx4938ide.c')
-rw-r--r-- | drivers/ide/tx4938ide.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/ide/tx4938ide.c b/drivers/ide/tx4938ide.c index 91d49dd957ef..ede8575ac7d5 100644 --- a/drivers/ide/tx4938ide.c +++ b/drivers/ide/tx4938ide.c @@ -203,18 +203,7 @@ static struct platform_driver tx4938ide_driver = { .remove = __exit_p(tx4938ide_remove), }; -static int __init tx4938ide_init(void) -{ - return platform_driver_probe(&tx4938ide_driver, tx4938ide_probe); -} - -static void __exit tx4938ide_exit(void) -{ - platform_driver_unregister(&tx4938ide_driver); -} - -module_init(tx4938ide_init); -module_exit(tx4938ide_exit); +module_platform_driver_probe(tx4938ide_driver, tx4938ide_probe); MODULE_DESCRIPTION("TX4938 internal IDE driver"); MODULE_LICENSE("GPL"); |