ramips: ethernet: ralink: fix kernel warnings ralink_sw
authorAlexander Couzens <lynxis@fe80.eu>
Mon, 5 Sep 2022 02:31:20 +0000 (04:31 +0200)
committerAlexander Couzens <lynxis@fe80.eu>
Mon, 5 Sep 2022 03:11:44 +0000 (05:11 +0200)
Fixes: 8569bc5e0d1b ("ramips: ethernet: ralink: rewrite esw_rt3050 to support link states")
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
target/linux/ramips/files/drivers/net/ethernet/ralink/esw_rt3050.c

index 253122dbee74eab682ce7bf2335fafad4b9ff7d0..f9e3db50738760a6c8d9bb7ab3dc5b3f58569677 100644 (file)
@@ -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;