igc: Refactor the igc_power_down_link()
[linux-2.6-microblaze.git] / drivers / remoteproc / mtk_scp.c
index 2bead57..ac13e7b 100644 (file)
@@ -132,8 +132,8 @@ static int scp_ipi_init(struct mtk_scp *scp)
                (struct mtk_share_obj __iomem *)(scp->sram_base + recv_offset);
        scp->send_buf =
                (struct mtk_share_obj __iomem *)(scp->sram_base + send_offset);
-       memset_io(scp->recv_buf, 0, sizeof(scp->recv_buf));
-       memset_io(scp->send_buf, 0, sizeof(scp->send_buf));
+       memset_io(scp->recv_buf, 0, sizeof(*scp->recv_buf));
+       memset_io(scp->send_buf, 0, sizeof(*scp->send_buf));
 
        return 0;
 }