Skip to content

Commit 477c17d

Browse files
Jingoo Handavem330
authored andcommitted
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>
1 parent 5abf6c6 commit 477c17d

1 file changed

Lines changed: 1 addition & 12 deletions

File tree

‎drivers/ide/tx4939ide.c‎

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -624,18 +624,7 @@ static struct platform_driver tx4939ide_driver = {
624624
.resume = tx4939ide_resume,
625625
};
626626

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);
639628

640629
MODULE_DESCRIPTION("TX4939 internal IDE driver");
641630
MODULE_LICENSE("GPL");

0 commit comments

Comments
 (0)