projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9407351
)
rtc-coh901331: fix braces in resume code
author
James Hogan
<
[email protected]
>
Fri, 5 Mar 2010 21:44:31 +0000
(13:44 -0800)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Mar 2010 19:26:48 +0000
(11:26 -0800)
The else part of the if statement is indented but does not have braces
around it. It clearly should since it uses clk_enable and clk_disable
which are supposed to balance.
Signed-off-by: James Hogan <
[email protected]
>
Acked-by: Linus Walleij <
[email protected]
>
Acked-by: Alessandro Zummo <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
drivers/rtc/rtc-coh901331.c
patch
|
blob
|
history
diff --git
a/drivers/rtc/rtc-coh901331.c
b/drivers/rtc/rtc-coh901331.c
index 03ea530981d1e66328625fb26567cc40e35f9f23..44c4399ee7144fc2e8cffca50d8a96426b05a8fb 100644
(file)
--- a/
drivers/rtc/rtc-coh901331.c
+++ b/
drivers/rtc/rtc-coh901331.c
@@
-271,12
+271,13
@@
static int coh901331_resume(struct platform_device *pdev)
{
struct coh901331_port *rtap = dev_get_drvdata(&pdev->dev);
- if (device_may_wakeup(&pdev->dev))
+ if (device_may_wakeup(&pdev->dev))
{
disable_irq_wake(rtap->irq);
- else
+ } else {
clk_enable(rtap->clk);
writel(rtap->irqmaskstore, rtap->virtbase + COH901331_IRQ_MASK);
clk_disable(rtap->clk);
+ }
return 0;
}
#else