Skip to content

Commit ba2d5af

Browse files
committed
block: xsysace: Don't use NO_IRQ
Drivers shouldn't use NO_IRQ. Microblaze and PPC define NO_IRQ as 0 and this reference will be removed in near future. Signed-off-by: Michal Simek <monstr@monstr.eu> Reviewed-by: Ryan Mallon <rmallon@gmail.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> CC: Rob Herring <rob.herring@calxeda.com>
1 parent 5dbeaad commit ba2d5af

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎drivers/block/xsysace.c‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ static inline void ace_fsm_yieldirq(struct ace_device *ace)
456456
{
457457
dev_dbg(ace->dev, "ace_fsm_yieldirq()\n");
458458

459-
if (ace->irq == NO_IRQ)
459+
if (!ace->irq)
460460
/* No IRQ assigned, so need to poll */
461461
tasklet_schedule(&ace->fsm_tasklet);
462462
ace->fsm_continue_flag = 0;
@@ -1034,12 +1034,12 @@ static int __devinit ace_setup(struct ace_device *ace)
10341034
ACE_CTRL_DATABUFRDYIRQ | ACE_CTRL_ERRORIRQ);
10351035

10361036
/* Now we can hook up the irq handler */
1037-
if (ace->irq != NO_IRQ) {
1037+
if (ace->irq) {
10381038
rc = request_irq(ace->irq, ace_interrupt, 0, "systemace", ace);
10391039
if (rc) {
10401040
/* Failure - fall back to polled mode */
10411041
dev_err(ace->dev, "request_irq failed\n");
1042-
ace->irq = NO_IRQ;
1042+
ace->irq = 0;
10431043
}
10441044
}
10451045

@@ -1086,7 +1086,7 @@ static void __devexit ace_teardown(struct ace_device *ace)
10861086

10871087
tasklet_kill(&ace->fsm_tasklet);
10881088

1089-
if (ace->irq != NO_IRQ)
1089+
if (ace->irq)
10901090
free_irq(ace->irq, ace);
10911091

10921092
iounmap(ace->baseaddr);
@@ -1156,7 +1156,7 @@ static int __devinit ace_probe(struct platform_device *dev)
11561156
resource_size_t physaddr = 0;
11571157
int bus_width = ACE_BUS_WIDTH_16; /* FIXME: should not be hard coded */
11581158
u32 id = dev->id;
1159-
int irq = NO_IRQ;
1159+
int irq = 0;
11601160
int i;
11611161

11621162
dev_dbg(&dev->dev, "ace_probe(%p)\n", dev);

0 commit comments

Comments
 (0)