mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-03 09:20:14 -05:00
rtc: rv3028: Add missed check for devm_regmap_init_i2c()
[ Upstream commit c3b29bf6f166f6ed5f04f9c125477358e0e25df8 ]
rv3028_probe() misses a check for devm_regmap_init_i2c().
Add the missed check to fix it.
Fixes: e6e7376cfd ("rtc: rv3028: add new driver")
Signed-off-by: Chuhong Yuan <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Sasha Levin <[email protected]>
This commit is contained in:
parent
f4fbb592d9
commit
2d9c7e0ff9
1 changed files with 2 additions and 0 deletions
|
|
@ -625,6 +625,8 @@ static int rv3028_probe(struct i2c_client *client)
|
|||
return -ENOMEM;
|
||||
|
||||
rv3028->regmap = devm_regmap_init_i2c(client, ®map_config);
|
||||
if (IS_ERR(rv3028->regmap))
|
||||
return PTR_ERR(rv3028->regmap);
|
||||
|
||||
i2c_set_clientdata(client, rv3028);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue