From d853b872489801b6ae20e373cee90faf1e2e95e7 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Thu, 16 Nov 2017 09:35:02 +0800 Subject: [PATCH] ASoC: rk312x_codec: remove references to RK_GRF_VIRT Change-Id: I43f8ae6beee64a0feaa8a43a1cc3d0ef9e8d0635 Signed-off-by: Tao Huang --- sound/soc/codecs/rk312x_codec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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__);