Skip to content

Commit 1a3b505

Browse files
olofjdavem330
authored andcommitted
net: eth: cpsw: 64-bit phys_addr_t and sparse cleanup
Minor fix for printk format of a phys_addr_t, and the switch of two local functions to static since they're not used outside of the file. Signed-off-by: Olof Johansson <olof@lixom.net> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent df78416 commit 1a3b505

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/net/ethernet/ti/cpsw.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,7 @@ static void cpsw_intr_disable(struct cpsw_priv *priv)
582582
return;
583583
}
584584

585-
void cpsw_tx_handler(void *token, int len, int status)
585+
static void cpsw_tx_handler(void *token, int len, int status)
586586
{
587587
struct sk_buff *skb = token;
588588
struct net_device *ndev = skb->dev;
@@ -599,7 +599,7 @@ void cpsw_tx_handler(void *token, int len, int status)
599599
dev_kfree_skb_any(skb);
600600
}
601601

602-
void cpsw_rx_handler(void *token, int len, int status)
602+
static void cpsw_rx_handler(void *token, int len, int status)
603603
{
604604
struct sk_buff *skb = token;
605605
struct sk_buff *new_skb;
@@ -2142,8 +2142,8 @@ static int cpsw_probe(struct platform_device *pdev)
21422142
data->cpts_clock_mult, data->cpts_clock_shift))
21432143
dev_err(priv->dev, "error registering cpts device\n");
21442144

2145-
cpsw_notice(priv, probe, "initialized device (regs %x, irq %d)\n",
2146-
ss_res->start, ndev->irq);
2145+
cpsw_notice(priv, probe, "initialized device (regs %pa, irq %d)\n",
2146+
&ss_res->start, ndev->irq);
21472147

21482148
if (priv->data.dual_emac) {
21492149
ret = cpsw_probe_dual_emac(pdev, priv);

0 commit comments

Comments
 (0)