diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2014-07-25 07:12:09 (GMT) |
---|---|---|
committer | Madalin Bucur <madalin.bucur@freescale.com> | 2015-02-25 16:26:53 (GMT) |
commit | cd9b7b9718e6044358f030694cb5dba61ba31784 (patch) | |
tree | 983ad54ef7f3c598157286e65386299d240fe6c4 /drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c | |
parent | 7eb361ffc4e115a17b182ec08c35bd86a64cc17f (diff) | |
download | linux-fsl-qoriq-cd9b7b9718e6044358f030694cb5dba61ba31784.tar.xz |
dpaa_eth: use common initialization function
Use a common initialization function for MACless, shared and proxy
Ethernet drivers.
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: I7a0ec70b33ad7ad92cb559dbd828572f83b5c98e
Reviewed-on: http://git.am.freescale.net:8181/15296
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Cristian Bercaru <cristian.bercaru@freescale.com>
Conflicts:
drivers/net/ethernet/freescale/dpa/dpaa_eth_base.c
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c index 57aacb9..a668c6d 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_proxy.c @@ -53,10 +53,6 @@ MODULE_LICENSE("Dual BSD/GPL"); MODULE_DESCRIPTION(DPA_DESCRIPTION); -static uint8_t debug = -1; -module_param(debug, byte, S_IRUGO); -MODULE_PARM_DESC(debug, "Module/Driver verbosity level"); - static int __cold dpa_eth_proxy_remove(struct platform_device *of_dev); #ifdef CONFIG_PM @@ -329,7 +325,7 @@ MODULE_DEVICE_TABLE(of, dpa_proxy_match); static struct platform_driver dpa_proxy_driver = { .driver = { - .name = KBUILD_MODNAME"-proxy", + .name = KBUILD_MODNAME "-proxy", .of_match_table = dpa_proxy_match, .owner = THIS_MODULE, .pm = PROXY_PM_OPS, @@ -338,7 +334,7 @@ static struct platform_driver dpa_proxy_driver = { .remove = dpa_eth_proxy_remove }; -static int __init __cold dpa_proxy_load(void) +int __init __cold dpa_proxy_load(void) { int _errno; @@ -360,13 +356,11 @@ static int __init __cold dpa_proxy_load(void) return _errno; } -module_init(dpa_proxy_load); -static void __exit __cold dpa_proxy_unload(void) +void __exit __cold dpa_proxy_unload(void) { platform_driver_unregister(&dpa_proxy_driver); pr_debug(KBUILD_MODNAME ": %s:%s() ->\n", KBUILD_BASENAME".c", __func__); } -module_exit(dpa_proxy_unload); |