diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/reg_ops.c b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/reg_ops.c index cc26522c1bcf..67a9ad1aecd8 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/reg_ops.c +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/reg_ops.c @@ -164,7 +164,7 @@ void init_reg_map(unsigned int type) switch (type) { case MESON_CPU_ID_G12A: map = reg_maps_g12a; - for (i = 0; i <= REG_IDX_END; i++) { + for (i = 0; i < REG_IDX_END; i++) { map[i].p = ioremap(map[i].phy_addr, map[i].size); if (!map[i].p) { pr_info("hdmitx20: failed Mapped PHY: 0x%x\n", diff --git a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/txlx_reg.h b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/txlx_reg.h index c1107c34e8f3..fb40e47a13c9 100644 --- a/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/txlx_reg.h +++ b/drivers/amlogic/media/vout/hdmitx/hdmi_tx_20/hw/txlx_reg.h @@ -24,7 +24,7 @@ #define RESET2_REGISTER 0x1003 #define P_RESET2_REGISTER RESET_CBUS_REG_ADDR(RESET2_REGISTER) -#define ISA_DEBUG_REG0 0x3c00 +#define ISA_DEBUG_REG0 0x00 #define P_ISA_DEBUG_REG0 CBUS_REG_ADDR(ISA_DEBUG_REG0) #endif