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

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>

authored by

Jingoo Han and committed by
David S. Miller
5abf6c64 47b3bc90

+1 -12
+1 -12
drivers/ide/tx4938ide.c
··· 203 203 .remove = __exit_p(tx4938ide_remove), 204 204 }; 205 205 206 - static int __init tx4938ide_init(void) 207 - { 208 - return platform_driver_probe(&tx4938ide_driver, tx4938ide_probe); 209 - } 210 - 211 - static void __exit tx4938ide_exit(void) 212 - { 213 - platform_driver_unregister(&tx4938ide_driver); 214 - } 215 - 216 - module_init(tx4938ide_init); 217 - module_exit(tx4938ide_exit); 206 + module_platform_driver_probe(tx4938ide_driver, tx4938ide_probe); 218 207 219 208 MODULE_DESCRIPTION("TX4938 internal IDE driver"); 220 209 MODULE_LICENSE("GPL");