aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/rtc/rtc-v3020.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/rtc/rtc-v3020.c')
-rw-r--r--drivers/rtc/rtc-v3020.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-v3020.c b/drivers/rtc/rtc-v3020.c
index 6e0cba8f47d5..4ee0e63ebba7 100644
--- a/drivers/rtc/rtc-v3020.c
+++ b/drivers/rtc/rtc-v3020.c
@@ -320,7 +320,7 @@ static int rtc_probe(struct platform_device *pdev)
320 320
321 retval = chip->ops->map_io(chip, pdev, pdata); 321 retval = chip->ops->map_io(chip, pdev, pdata);
322 if (retval) 322 if (retval)
323 goto err_chip; 323 return retval;
324 324
325 /* Make sure the v3020 expects a communication cycle 325 /* Make sure the v3020 expects a communication cycle
326 * by reading 8 times */ 326 * by reading 8 times */
@@ -364,7 +364,7 @@ static int rtc_probe(struct platform_device *pdev)
364 364
365err_io: 365err_io:
366 chip->ops->unmap_io(chip); 366 chip->ops->unmap_io(chip);
367err_chip: 367
368 return retval; 368 return retval;
369} 369}
370 370