Fixes: 8569bc5e0d1b ("ramips: ethernet: ralink: rewrite esw_rt3050 to support link states")
Signed-off-by: Alexander Couzens <lynxis@fe80.eu>
{
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) {
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;