diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-02-06 13:23:34 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-03-18 04:01:07 -0400 |
commit | 172d2d1d8414f6d8d4ae97557e102463b064aff0 (patch) | |
tree | d1399a95584406827d198bcc51e257f49ab12753 /arch/blackfin/mach-common/ints-priority.c | |
parent | dabf64bcc58cc182f389a9ca602f2c5cb9ba8aef (diff) |
Blackfin: convert mac irq_chip to new functions
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'arch/blackfin/mach-common/ints-priority.c')
-rw-r--r-- | arch/blackfin/mach-common/ints-priority.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/arch/blackfin/mach-common/ints-priority.c b/arch/blackfin/mach-common/ints-priority.c index 79ee08d89815..2d9720ca916c 100644 --- a/arch/blackfin/mach-common/ints-priority.c +++ b/arch/blackfin/mach-common/ints-priority.c | |||
@@ -462,8 +462,10 @@ static void bfin_mac_status_ack_irq(unsigned int irq) | |||
462 | } | 462 | } |
463 | } | 463 | } |
464 | 464 | ||
465 | static void bfin_mac_status_mask_irq(unsigned int irq) | 465 | static void bfin_mac_status_mask_irq(struct irq_data *d) |
466 | { | 466 | { |
467 | unsigned int irq = d->irq; | ||
468 | |||
467 | mac_stat_int_mask &= ~(1L << (irq - IRQ_MAC_PHYINT)); | 469 | mac_stat_int_mask &= ~(1L << (irq - IRQ_MAC_PHYINT)); |
468 | #ifdef BF537_GENERIC_ERROR_INT_DEMUX | 470 | #ifdef BF537_GENERIC_ERROR_INT_DEMUX |
469 | switch (irq) { | 471 | switch (irq) { |
@@ -480,8 +482,10 @@ static void bfin_mac_status_mask_irq(unsigned int irq) | |||
480 | bfin_mac_status_ack_irq(irq); | 482 | bfin_mac_status_ack_irq(irq); |
481 | } | 483 | } |
482 | 484 | ||
483 | static void bfin_mac_status_unmask_irq(unsigned int irq) | 485 | static void bfin_mac_status_unmask_irq(struct irq_data *d) |
484 | { | 486 | { |
487 | unsigned int irq = d->irq; | ||
488 | |||
485 | #ifdef BF537_GENERIC_ERROR_INT_DEMUX | 489 | #ifdef BF537_GENERIC_ERROR_INT_DEMUX |
486 | switch (irq) { | 490 | switch (irq) { |
487 | case IRQ_MAC_PHYINT: | 491 | case IRQ_MAC_PHYINT: |
@@ -498,7 +502,7 @@ static void bfin_mac_status_unmask_irq(unsigned int irq) | |||
498 | } | 502 | } |
499 | 503 | ||
500 | #ifdef CONFIG_PM | 504 | #ifdef CONFIG_PM |
501 | int bfin_mac_status_set_wake(unsigned int irq, unsigned int state) | 505 | int bfin_mac_status_set_wake(struct irq_data *d, unsigned int state) |
502 | { | 506 | { |
503 | #ifdef BF537_GENERIC_ERROR_INT_DEMUX | 507 | #ifdef BF537_GENERIC_ERROR_INT_DEMUX |
504 | return bfin_internal_set_wake(IRQ_GENERIC_ERROR, state); | 508 | return bfin_internal_set_wake(IRQ_GENERIC_ERROR, state); |
@@ -511,11 +515,11 @@ int bfin_mac_status_set_wake(unsigned int irq, unsigned int state) | |||
511 | static struct irq_chip bfin_mac_status_irqchip = { | 515 | static struct irq_chip bfin_mac_status_irqchip = { |
512 | .name = "MACST", | 516 | .name = "MACST", |
513 | .irq_ack = bfin_ack_noop, | 517 | .irq_ack = bfin_ack_noop, |
514 | .mask_ack = bfin_mac_status_mask_irq, | 518 | .irq_mask_ack = bfin_mac_status_mask_irq, |
515 | .mask = bfin_mac_status_mask_irq, | 519 | .irq_mask = bfin_mac_status_mask_irq, |
516 | .unmask = bfin_mac_status_unmask_irq, | 520 | .irq_unmask = bfin_mac_status_unmask_irq, |
517 | #ifdef CONFIG_PM | 521 | #ifdef CONFIG_PM |
518 | .set_wake = bfin_mac_status_set_wake, | 522 | .irq_set_wake = bfin_mac_status_set_wake, |
519 | #endif | 523 | #endif |
520 | }; | 524 | }; |
521 | 525 | ||