aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2013-03-04 11:25:46 -0500
committerDavid S. Miller <davem@davemloft.net>2013-03-08 12:38:15 -0500
commit5abf6c643115aa20905e36b649cbe80ad784f332 (patch)
tree9fafd3fcbd1e6008654b192b233caef81ccbcdfd /drivers/ide
parent47b3bc907328db968bc9b43c41f48f8d1e140750 (diff)
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')
-rw-r--r--drivers/ide/tx4938ide.c13
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 = {
203 .remove = __exit_p(tx4938ide_remove), 203 .remove = __exit_p(tx4938ide_remove),
204}; 204};
205 205
206static int __init tx4938ide_init(void) 206module_platform_driver_probe(tx4938ide_driver, tx4938ide_probe);
207{
208 return platform_driver_probe(&tx4938ide_driver, tx4938ide_probe);
209}
210
211static void __exit tx4938ide_exit(void)
212{
213 platform_driver_unregister(&tx4938ide_driver);
214}
215
216module_init(tx4938ide_init);
217module_exit(tx4938ide_exit);
218 207
219MODULE_DESCRIPTION("TX4938 internal IDE driver"); 208MODULE_DESCRIPTION("TX4938 internal IDE driver");
220MODULE_LICENSE("GPL"); 209MODULE_LICENSE("GPL");