mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-13 04:41:17 +00:00
drivers/rtc/rtc-imxdi.c: trivial clean up code
Signed-off-by: Juergen Borleis <jbe@pengutronix.de> Cc: Alessandro Zummo <a.zummo@towertech.it> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
1a67e256db
commit
6df17a6577
@ -313,7 +313,7 @@ static irqreturn_t dryice_norm_irq(int irq, void *dev_id)
|
|||||||
dier = __raw_readl(imxdi->ioaddr + DIER);
|
dier = __raw_readl(imxdi->ioaddr + DIER);
|
||||||
|
|
||||||
/* handle write complete and write error cases */
|
/* handle write complete and write error cases */
|
||||||
if ((dier & DIER_WCIE)) {
|
if (dier & DIER_WCIE) {
|
||||||
/*If the write wait queue is empty then there is no pending
|
/*If the write wait queue is empty then there is no pending
|
||||||
operations. It means the interrupt is for DryIce -Security.
|
operations. It means the interrupt is for DryIce -Security.
|
||||||
IRQ must be returned as none.*/
|
IRQ must be returned as none.*/
|
||||||
@ -322,7 +322,7 @@ static irqreturn_t dryice_norm_irq(int irq, void *dev_id)
|
|||||||
|
|
||||||
/* DSR_WCF clears itself on DSR read */
|
/* DSR_WCF clears itself on DSR read */
|
||||||
dsr = __raw_readl(imxdi->ioaddr + DSR);
|
dsr = __raw_readl(imxdi->ioaddr + DSR);
|
||||||
if ((dsr & (DSR_WCF | DSR_WEF))) {
|
if (dsr & (DSR_WCF | DSR_WEF)) {
|
||||||
/* mask the interrupt */
|
/* mask the interrupt */
|
||||||
di_int_disable(imxdi, DIER_WCIE);
|
di_int_disable(imxdi, DIER_WCIE);
|
||||||
|
|
||||||
@ -335,7 +335,7 @@ static irqreturn_t dryice_norm_irq(int irq, void *dev_id)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* handle the alarm case */
|
/* handle the alarm case */
|
||||||
if ((dier & DIER_CAIE)) {
|
if (dier & DIER_CAIE) {
|
||||||
/* DSR_WCF clears itself on DSR read */
|
/* DSR_WCF clears itself on DSR read */
|
||||||
dsr = __raw_readl(imxdi->ioaddr + DSR);
|
dsr = __raw_readl(imxdi->ioaddr + DSR);
|
||||||
if (dsr & DSR_CAF) {
|
if (dsr & DSR_CAF) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user