From 209612ceef34b8ef7d88fb5909305a98fa327da4 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Mon, 5 Sep 2022 04:31:20 +0200 Subject: [PATCH] ramips: ethernet: ralink: fix kernel warnings Fixes: 8569bc5e0d1b ("ramips: ethernet: ralink: rewrite esw_rt3050 to support link states") Signed-off-by: Alexander Couzens --- .../ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c index 253122dbee..f9e3db5073 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c @@ -752,7 +752,6 @@ static irqreturn_t esw_interrupt(int irq, void *_esw) { struct rt305x_esw *esw = (struct rt305x_esw *) _esw; u32 status; - int i; status = esw_r32(esw, RT305X_ESW_REG_ISR); if (status & RT305X_ESW_PORT_ST_CHG) { @@ -1518,7 +1517,7 @@ int rt3050_esw_init(struct fe_priv *priv) esw_w32(esw, ~RT305X_ESW_PORT_ST_CHG, RT305X_ESW_REG_IMR); } - dev_info(&pdev->dev, "mediatek esw at 0x%08lx, irq %d initialized\n", + dev_info(&pdev->dev, "mediatek esw at 0x%p, irq %d initialized\n", esw->base, esw->irq); return 0; -- 2.30.2