Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 477c17db authored by Jingoo Han's avatar Jingoo Han Committed by David S. Miller
Browse files

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: default avatarJingoo Han <jg1.han@samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5abf6c64
Loading
Loading
Loading
Loading
+1 −12
Original line number Diff line number Diff line
@@ -624,18 +624,7 @@ static struct platform_driver tx4939ide_driver = {
	.resume = tx4939ide_resume,
};

static int __init tx4939ide_init(void)
{
	return platform_driver_probe(&tx4939ide_driver, tx4939ide_probe);
}

static void __exit tx4939ide_exit(void)
{
	platform_driver_unregister(&tx4939ide_driver);
}

module_init(tx4939ide_init);
module_exit(tx4939ide_exit);
module_platform_driver_probe(tx4939ide_driver, tx4939ide_probe);

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