summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
diff options
context:
space:
mode:
authorJoachim Eastwood <manabian@gmail.com>2015-05-14 10:11:06 (GMT)
committerDavid S. Miller <davem@davemloft.net>2015-05-15 16:44:23 (GMT)
commit50649ab14982a321f116ad11bb6202cb23e7557d (patch)
tree7bc219c0121842e23bdde9c7791197f7e1b5626c /drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
parent4198b7db47b29a4fff8f77ccc94ce0208084f3fb (diff)
downloadlinux-50649ab14982a321f116ad11bb6202cb23e7557d.tar.xz
stmmac: drop driver from stmmac platform code
The dwmac-generic replaces the driver inside the stmmac platform code. This turns stmmac platform into a library used by drivers for common platform driver functions. Signed-off-by: Joachim Eastwood <manabian@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c')
-rw-r--r--drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c b/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
index fb96237..e817a1a 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac-generic.c
@@ -1,6 +1,7 @@
/*
* Generic DWMAC platform driver
*
+ * Copyright (C) 2007-2011 STMicroelectronics Ltd
* Copyright (C) 2015 Joachim Eastwood <manabian@gmail.com>
*
* This file is licensed under the terms of the GNU General Public
@@ -12,6 +13,7 @@
#include <linux/of.h>
#include <linux/platform_device.h>
+#include "stmmac.h"
#include "stmmac_platform.h"
static const struct of_device_id dwmac_generic_match[] = {
@@ -28,7 +30,7 @@ static struct platform_driver dwmac_generic_driver = {
.probe = stmmac_pltfr_probe,
.remove = stmmac_pltfr_remove,
.driver = {
- .name = "dwmac-generic",
+ .name = STMMAC_RESOURCE_NAME,
.pm = &stmmac_pltfr_pm_ops,
.of_match_table = of_match_ptr(dwmac_generic_match),
},