diff options
author | David Schalig <dschalig@nvidia.com> | 2011-12-13 18:55:35 +0900 |
---|---|---|
committer | Varun Wadekar <vwadekar@nvidia.com> | 2011-12-21 12:06:25 +0530 |
commit | 7e3c71a19da4663894bc11eebe8b203cfc8a048b (patch) | |
tree | d7d6a027023354d0d381d93fa6d87bc108e2eae6 /drivers/rtc | |
parent | 9bed906d81546f8a6689c54e99f3ecc376ee82a5 (diff) |
rtc: tps80031: fix missing curly brackets
Bug 914750
Bug 914753
Change-Id: I5aef20ca4925057a5d9d0932c9267a40c732ef4a
Signed-off-by: David Schalig <dschalig@nvidia.com>
Reviewed-on: http://git-master/r/69720
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>
Reviewed-by: Sachin Nikam <snikam@nvidia.com>
Diffstat (limited to 'drivers/rtc')
-rw-r--r-- | drivers/rtc/rtc-tps80031.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/rtc/rtc-tps80031.c b/drivers/rtc/rtc-tps80031.c index 9ab1cc3b547e..7d32032266fd 100644 --- a/drivers/rtc/rtc-tps80031.c +++ b/drivers/rtc/rtc-tps80031.c @@ -268,17 +268,19 @@ static int tps80031_rtc_alarm_irq_enable(struct device *dev, return 0; err = tps80031_set_bits(p, 1, RTC_INT, ENABLE_ALARM_INT); - if (err < 0) + if (err < 0) { dev_err(p, "failed to set ALRM int. err: %d\n", err); - return err; + return err; + } rtc->irq_en = true; } else { if (rtc->irq_en == false) return 0; err = tps80031_clr_bits(p, 1, RTC_INT, ENABLE_ALARM_INT); - if (err < 0) + if (err < 0) { dev_err(p, "failed to clear ALRM int. err: %d\n", err); - return err; + return err; + } rtc->irq_en = false; } return 0; |