Commit 1852f5ed authored by Jeongtae Park's avatar Jeongtae Park Committed by Mark Brown

regmap: fix the offset of register error log

This patch fixes the offset of register error log
by using regmap_get_offset().
Signed-off-by: default avatarJeongtae Park <jeongtae.park@gmail.com>
Link: https://lore.kernel.org/r/20210701142630.44936-1-jeongtae.park@gmail.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent e73f0f0e
......@@ -1667,7 +1667,7 @@ static int _regmap_raw_write_impl(struct regmap *map, unsigned int reg,
if (ret) {
dev_err(map->dev,
"Error in caching of register: %x ret: %d\n",
reg + i, ret);
reg + regmap_get_offset(map, i), ret);
return ret;
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment