Skip to content

Commit

Permalink
net: cs89x0: use module_platform_driver_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jingoo Han authored and David S. Miller committed Mar 6, 2013
1 parent b543a8d commit fae4f3c
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions drivers/net/ethernet/cirrus/cs89x0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit fae4f3c

Please sign in to comment.