From 52b052f64e45495298bab4f5d4a529c454bcfc72 Mon Sep 17 00:00:00 2001 From: Fancy Fang Date: Tue, 17 Dec 2019 11:39:19 +0800 Subject: [PATCH] LF-218 reset: dispmix: remove dev when init mmio regmap Remove dev for mmio regmap init can forbid the regmap to create entries for this device under the /sys/kernel/debug/regmap/ directory which can avoid hang issue when access the registers if no display connected to it. Signed-off-by: Fancy Fang --- drivers/reset/reset-dispmix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/reset/reset-dispmix.c b/drivers/reset/reset-dispmix.c index 466684246c8d..60daf7109d0b 100644 --- a/drivers/reset/reset-dispmix.c +++ b/drivers/reset/reset-dispmix.c @@ -352,8 +352,8 @@ static int dispmix_reset_probe(struct platform_device *pdev) pdata = of_id->data; /* init mmio regmap */ - regmap = devm_regmap_init_mmio_clk(dev, __clk_get_name(apb_clk), - regs, pdata->config); + regmap = regmap_init_mmio_clk(NULL, NULL, + regs, pdata->config); if (IS_ERR(regmap)) { dev_err(dev, "Failed to init mmio regmap: %ld\n", PTR_ERR(regmap));