Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jingoo Han and committed by
David S. Miller
477c17db 5abf6c64

+1 -12
+1 -12
drivers/ide/tx4939ide.c
··· 624 624 .resume = tx4939ide_resume, 625 625 }; 626 626 627 - static int __init tx4939ide_init(void) 628 - { 629 - return platform_driver_probe(&tx4939ide_driver, tx4939ide_probe); 630 - } 631 - 632 - static void __exit tx4939ide_exit(void) 633 - { 634 - platform_driver_unregister(&tx4939ide_driver); 635 - } 636 - 637 - module_init(tx4939ide_init); 638 - module_exit(tx4939ide_exit); 627 + module_platform_driver_probe(tx4939ide_driver, tx4939ide_probe); 639 628 640 629 MODULE_DESCRIPTION("TX4939 internal IDE driver"); 641 630 MODULE_LICENSE("GPL");