Skip to content

Commit

Permalink
drivers/pcmcia: NO_IRQ removal for electra_cf.c
Browse files Browse the repository at this point in the history
We'd like to eventually remove NO_IRQ on powerpc, so remove usages of it
from electra_cf.c which is a powerpc-only driver.

Signed-off-by: Michael Ellerman <[email protected]>
  • Loading branch information
mpe committed Mar 21, 2017
1 parent 58f1691 commit 6c8343e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/pcmcia/electra_cf.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ static int electra_cf_probe(struct platform_device *ofdev)
return -ENOMEM;

setup_timer(&cf->timer, electra_cf_timer, (unsigned long)cf);
cf->irq = NO_IRQ;
cf->irq = 0;

cf->ofdev = ofdev;
cf->mem_phys = mem.start;
Expand Down Expand Up @@ -313,7 +313,7 @@ static int electra_cf_probe(struct platform_device *ofdev)
fail2:
release_mem_region(cf->mem_phys, cf->mem_size);
fail1:
if (cf->irq != NO_IRQ)
if (cf->irq)
free_irq(cf->irq, cf);

if (cf->io_virt)
Expand Down

0 comments on commit 6c8343e

Please sign in to comment.