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

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

net: cs89x0: 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 b543a8d8
Loading
Loading
Loading
Loading
+1 −13
Original line number Diff line number Diff line
@@ -1978,18 +1978,6 @@ static struct platform_driver cs89x0_driver = {
	.remove	= cs89x0_platform_remove,
};

static int __init cs89x0_init(void)
{
	return platform_driver_probe(&cs89x0_driver, cs89x0_platform_probe);
}

module_init(cs89x0_init);

static void __exit cs89x0_cleanup(void)
{
	platform_driver_unregister(&cs89x0_driver);
}

module_exit(cs89x0_cleanup);
module_platform_driver_probe(cs89x0_driver, cs89x0_platform_probe);

#endif /* CONFIG_CS89x0_PLATFORM */