diff options
Diffstat (limited to 'drivers/rtc/rtc-snvs.c')
-rw-r--r-- | drivers/rtc/rtc-snvs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-snvs.c b/drivers/rtc/rtc-snvs.c index d51b07d620f7..d8ef9e052c4f 100644 --- a/drivers/rtc/rtc-snvs.c +++ b/drivers/rtc/rtc-snvs.c | |||
@@ -258,7 +258,7 @@ static int snvs_rtc_probe(struct platform_device *pdev) | |||
258 | of_property_read_u32(pdev->dev.of_node, "offset", &data->offset); | 258 | of_property_read_u32(pdev->dev.of_node, "offset", &data->offset); |
259 | } | 259 | } |
260 | 260 | ||
261 | if (!data->regmap) { | 261 | if (IS_ERR(data->regmap)) { |
262 | dev_err(&pdev->dev, "Can't find snvs syscon\n"); | 262 | dev_err(&pdev->dev, "Can't find snvs syscon\n"); |
263 | return -ENODEV; | 263 | return -ENODEV; |
264 | } | 264 | } |