提交 b31525d1 编写于 作者: S stigge@antcom.de 提交者: David S. Miller

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: NRoland Stigge <stigge@antcom.de>
Signed-off-by: NAlexandre Pereira da Silva <aletes.xgr@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 674147e2
...@@ -52,7 +52,6 @@ ...@@ -52,7 +52,6 @@
#define MODNAME "lpc-eth" #define MODNAME "lpc-eth"
#define DRV_VERSION "1.00" #define DRV_VERSION "1.00"
#define PHYDEF_ADDR 0x00
#define ENET_MAXF_SIZE 1536 #define ENET_MAXF_SIZE 1536
#define ENET_RX_DESC 48 #define ENET_RX_DESC 48
...@@ -416,9 +415,6 @@ static bool use_iram_for_net(struct device *dev) ...@@ -416,9 +415,6 @@ static bool use_iram_for_net(struct device *dev)
#define TXDESC_CONTROL_LAST (1 << 30) #define TXDESC_CONTROL_LAST (1 << 30)
#define TXDESC_CONTROL_INT (1 << 31) #define TXDESC_CONTROL_INT (1 << 31)
static int lpc_eth_hard_start_xmit(struct sk_buff *skb,
struct net_device *ndev);
/* /*
* Structure of a TX/RX descriptors and RX status * Structure of a TX/RX descriptors and RX status
*/ */
...@@ -1441,7 +1437,7 @@ static int lpc_eth_drv_probe(struct platform_device *pdev) ...@@ -1441,7 +1437,7 @@ static int lpc_eth_drv_probe(struct platform_device *pdev)
res->start); res->start);
netdev_dbg(ndev, "IO address size :%d\n", netdev_dbg(ndev, "IO address size :%d\n",
res->end - res->start + 1); res->end - res->start + 1);
netdev_err(ndev, "IO address (mapped) :0x%p\n", netdev_dbg(ndev, "IO address (mapped) :0x%p\n",
pldat->net_base); pldat->net_base);
netdev_dbg(ndev, "IRQ number :%d\n", ndev->irq); netdev_dbg(ndev, "IRQ number :%d\n", ndev->irq);
netdev_dbg(ndev, "DMA buffer size :%d\n", pldat->dma_buff_size); netdev_dbg(ndev, "DMA buffer size :%d\n", pldat->dma_buff_size);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册