diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-03-04 16:43:18 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-05 23:39:13 -0500 |
commit | b543a8d813e979821d97a58b1509df4fdfcfa637 (patch) | |
tree | 7eb8378c7cacaeaa56e00b36627d1cf3a84a0717 /drivers/net/ethernet/cadence/macb.c | |
parent | ecad0a684c30c8f28c332c12f0746a22189be4f0 (diff) | |
download | op-kernel-dev-b543a8d813e979821d97a58b1509df4fdfcfa637.zip op-kernel-dev-b543a8d813e979821d97a58b1509df4fdfcfa637.tar.gz |
net: macb: 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>
Diffstat (limited to 'drivers/net/ethernet/cadence/macb.c')
-rw-r--r-- | drivers/net/ethernet/cadence/macb.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/net/ethernet/cadence/macb.c b/drivers/net/ethernet/cadence/macb.c index 7903943..3a5d680 100644 --- a/drivers/net/ethernet/cadence/macb.c +++ b/drivers/net/ethernet/cadence/macb.c @@ -1737,18 +1737,7 @@ static struct platform_driver macb_driver = { }, }; -static int __init macb_init(void) -{ - return platform_driver_probe(&macb_driver, macb_probe); -} - -static void __exit macb_exit(void) -{ - platform_driver_unregister(&macb_driver); -} - -module_init(macb_init); -module_exit(macb_exit); +module_platform_driver_probe(macb_driver, macb_probe); MODULE_LICENSE("GPL"); MODULE_DESCRIPTION("Cadence MACB/GEM Ethernet driver"); |