rtc: rv3028: Add missed check for devm_regmap_init_i2c()

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 <hslester96@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20200528103950.912353-1-hslester96@gmail.com
This commit is contained in:
Chuhong Yuan 2020-05-28 18:39:50 +08:00 коммит произвёл Alexandre Belloni
Родитель 710e4a82d6
Коммит c3b29bf6f1
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -755,6 +755,8 @@ static int rv3028_probe(struct i2c_client *client)
return -ENOMEM;
rv3028->regmap = devm_regmap_init_i2c(client, &regmap_config);
if (IS_ERR(rv3028->regmap))
return PTR_ERR(rv3028->regmap);
i2c_set_clientdata(client, rv3028);