diff --git a/sound/soc/codecs/rk312x_codec.c b/sound/soc/codecs/rk312x_codec.c index 9ffc674f98d7..64cbd69bed49 100644 --- a/sound/soc/codecs/rk312x_codec.c +++ b/sound/soc/codecs/rk312x_codec.c @@ -22,7 +22,6 @@ #include #include #include -#include #include #include #include @@ -2102,7 +2101,7 @@ static void hpdet_work_func(struct work_struct *work) { unsigned int val = 0; - val = readl_relaxed(RK_GRF_VIRT + GRF_SOC_STATUS0); + regmap_read(rk312x_priv->grf, GRF_SOC_STATUS0, &val); DBG("%s GRF_SOC_STATUS0 -- 0x%x\n", __func__, val); if (val & 0x80000000) { DBG("%s hp det high\n", __func__);