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 <chen.fang@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
5af6d5eaf4
commit
52b052f64e
|
@ -352,8 +352,8 @@ static int dispmix_reset_probe(struct platform_device *pdev)
|
||||||
pdata = of_id->data;
|
pdata = of_id->data;
|
||||||
|
|
||||||
/* init mmio regmap */
|
/* init mmio regmap */
|
||||||
regmap = devm_regmap_init_mmio_clk(dev, __clk_get_name(apb_clk),
|
regmap = regmap_init_mmio_clk(NULL, NULL,
|
||||||
regs, pdata->config);
|
regs, pdata->config);
|
||||||
if (IS_ERR(regmap)) {
|
if (IS_ERR(regmap)) {
|
||||||
dev_err(dev, "Failed to init mmio regmap: %ld\n",
|
dev_err(dev, "Failed to init mmio regmap: %ld\n",
|
||||||
PTR_ERR(regmap));
|
PTR_ERR(regmap));
|
||||||
|
|
Loading…
Reference in New Issue