summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorIyappan Subramanian <isubramanian@apm.com>2017-03-08 04:08:45 +0300
committerDavid S. Miller <davem@davemloft.net>2017-03-10 00:25:04 +0300
commit70dbd9b258d5a6a21d9a41ae798f5476dcdb086c (patch)
tree3b4c3a155a48b56b2691500e7d75420c7bf469b5 /drivers/net
parentb105bcdaaa0efac4512d108495f1cc19abe7b7a4 (diff)
downloadlinux-70dbd9b258d5a6a21d9a41ae798f5476dcdb086c.tar.xz
MAINTAINERS: Add entry for APM X-Gene SoC Ethernet (v2) driver
This patch adds a MAINTAINERS entry for the ethernet driver for the on-chip ethernet interface which uses a linked list of DMA descriptor architecture (v2) for APM X-Gene SoCs. Signed-off-by: Iyappan Subramanian <isubramanian@apm.com> Signed-off-by: Keyur Chudgar <kchudgar@apm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/apm/xgene-v2/mac.c2
-rw-r--r--drivers/net/ethernet/apm/xgene-v2/main.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/net/ethernet/apm/xgene-v2/mac.c b/drivers/net/ethernet/apm/xgene-v2/mac.c
index 9c3d32d3b7dd..c3189de3df55 100644
--- a/drivers/net/ethernet/apm/xgene-v2/mac.c
+++ b/drivers/net/ethernet/apm/xgene-v2/mac.c
@@ -77,8 +77,8 @@ static void xge_mac_set_speed(struct xge_pdata *pdata)
void xge_mac_set_station_addr(struct xge_pdata *pdata)
{
- u32 addr0, addr1;
u8 *dev_addr = pdata->ndev->dev_addr;
+ u32 addr0, addr1;
addr0 = (dev_addr[3] << 24) | (dev_addr[2] << 16) |
(dev_addr[1] << 8) | dev_addr[0];
diff --git a/drivers/net/ethernet/apm/xgene-v2/main.c b/drivers/net/ethernet/apm/xgene-v2/main.c
index b16ef43bc83c..ae76977d10b4 100644
--- a/drivers/net/ethernet/apm/xgene-v2/main.c
+++ b/drivers/net/ethernet/apm/xgene-v2/main.c
@@ -27,9 +27,9 @@ static int xge_get_resources(struct xge_pdata *pdata)
{
struct platform_device *pdev;
struct net_device *ndev;
- struct device *dev;
- struct resource *res;
int phy_mode, ret = 0;
+ struct resource *res;
+ struct device *dev;
pdev = pdata->pdev;
dev = &pdev->dev;
@@ -190,9 +190,9 @@ static netdev_tx_t xge_start_xmit(struct sk_buff *skb, struct net_device *ndev)
{
struct xge_pdata *pdata = netdev_priv(ndev);
struct device *dev = &pdata->pdev->dev;
- static dma_addr_t dma_addr;
struct xge_desc_ring *tx_ring;
struct xge_raw_desc *raw_desc;
+ static dma_addr_t dma_addr;
u64 addr_lo, addr_hi;
void *pkt_buf;
u8 tail;
@@ -526,7 +526,7 @@ static int xge_close(struct net_device *ndev)
static int xge_napi(struct napi_struct *napi, const int budget)
{
struct net_device *ndev = napi->dev;
- struct xge_pdata *pdata = netdev_priv(ndev);
+ struct xge_pdata *pdata;
int processed;
pdata = netdev_priv(ndev);