diff options
author | stigge@antcom.de <stigge@antcom.de> | 2012-06-18 06:14:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-19 03:27:03 -0400 |
commit | b31525d16b50fe0eb33545afbc0be1a03f2896e3 (patch) | |
tree | c1ba5c38089ce063050804e4580a1fbf901a002c /drivers | |
parent | 674147e21195a496164e1c7ff70d0f0b45235f25 (diff) |
net: lpc_eth: Driver cleanup
This patch removes some nowadays superfluous definitions (one unused define and
an obsolete function forward declaration) and corrects a netdev_err() to
netdev_dbg().
Signed-off-by: Roland Stigge <stigge@antcom.de>
Signed-off-by: Alexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/nxp/lpc_eth.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/net/ethernet/nxp/lpc_eth.c b/drivers/net/ethernet/nxp/lpc_eth.c index 028dde4d4979..e7d2496a4738 100644 --- a/drivers/net/ethernet/nxp/lpc_eth.c +++ b/drivers/net/ethernet/nxp/lpc_eth.c | |||
@@ -52,7 +52,6 @@ | |||
52 | 52 | ||
53 | #define MODNAME "lpc-eth" | 53 | #define MODNAME "lpc-eth" |
54 | #define DRV_VERSION "1.00" | 54 | #define DRV_VERSION "1.00" |
55 | #define PHYDEF_ADDR 0x00 | ||
56 | 55 | ||
57 | #define ENET_MAXF_SIZE 1536 | 56 | #define ENET_MAXF_SIZE 1536 |
58 | #define ENET_RX_DESC 48 | 57 | #define ENET_RX_DESC 48 |
@@ -416,9 +415,6 @@ static bool use_iram_for_net(struct device *dev) | |||
416 | #define TXDESC_CONTROL_LAST (1 << 30) | 415 | #define TXDESC_CONTROL_LAST (1 << 30) |
417 | #define TXDESC_CONTROL_INT (1 << 31) | 416 | #define TXDESC_CONTROL_INT (1 << 31) |
418 | 417 | ||
419 | static int lpc_eth_hard_start_xmit(struct sk_buff *skb, | ||
420 | struct net_device *ndev); | ||
421 | |||
422 | /* | 418 | /* |
423 | * Structure of a TX/RX descriptors and RX status | 419 | * Structure of a TX/RX descriptors and RX status |
424 | */ | 420 | */ |
@@ -1441,7 +1437,7 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) | |||
1441 | res->start); | 1437 | res->start); |
1442 | netdev_dbg(ndev, "IO address size :%d\n", | 1438 | netdev_dbg(ndev, "IO address size :%d\n", |
1443 | res->end - res->start + 1); | 1439 | res->end - res->start + 1); |
1444 | netdev_err(ndev, "IO address (mapped) :0x%p\n", | 1440 | netdev_dbg(ndev, "IO address (mapped) :0x%p\n", |
1445 | pldat->net_base); | 1441 | pldat->net_base); |
1446 | netdev_dbg(ndev, "IRQ number :%d\n", ndev->irq); | 1442 | netdev_dbg(ndev, "IRQ number :%d\n", ndev->irq); |
1447 | netdev_dbg(ndev, "DMA buffer size :%d\n", pldat->dma_buff_size); | 1443 | netdev_dbg(ndev, "DMA buffer size :%d\n", pldat->dma_buff_size); |