mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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: Jingoo Han <jg1.han@samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b543a8d813
commit
fae4f3cf49
1 changed files with 1 additions and 13 deletions
|
@ -1978,18 +1978,6 @@ static struct platform_driver cs89x0_driver = {
|
||||||
.remove = cs89x0_platform_remove,
|
.remove = cs89x0_platform_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init cs89x0_init(void)
|
module_platform_driver_probe(cs89x0_driver, cs89x0_platform_probe);
|
||||||
{
|
|
||||||
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);
|
|
||||||
|
|
||||||
#endif /* CONFIG_CS89x0_PLATFORM */
|
#endif /* CONFIG_CS89x0_PLATFORM */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue