rtc: rv3028: Add missed check for devm_regmap_init_i2c()
PATCH v2 1/1 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 e6e7376cfd7b ("rtc: rv3028: add new driver")
Signed-off-by Chuhong Yuan <[email protected]>
---
Changes in v2:
- Add fixes tag.
drivers/rtc/rtc-rv3028.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/rtc/rtc-rv3028.c +2 -0
@@ -755,6 +755,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);
Signature · 1 line
2.26.2
Alexandre Belloni
maintainerQuoted 12 lines · Chuhong Yuan
rv3028_probe()misses a check fordevm_regmap_init_i2c(). Add the missed check to fix it.Fixes e6e7376cfd7b ("rtc: rv3028: add new driver")Signed-off-by Chuhong Yuan <[email protected]>---
Changes in v2:
- Add fixes tag.drivers/rtc/rtc-rv3028.c | 2 ++ 1 file changed, 2 insertions(+)
Actually, this is the one I applied.
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com