Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=96290d808fa4c9b8e744dc1cd032b005179f4710
Commit:     96290d808fa4c9b8e744dc1cd032b005179f4710
Parent:     48180cab3adf4cb290c28b70e44e958b7fb8a5b0
Author:     Magnus Damm <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 3 14:29:20 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Fri Sep 21 11:57:48 2007 +0900

    sh: remove intc2 code
    
    There is no point in keeping around the now unused intc2 code.
    
    Signed-off-by: Magnus Damm <[EMAIL PROTECTED]>
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 arch/sh/Kconfig                 |    3 -
 arch/sh/kernel/cpu/irq/Makefile |    1 -
 arch/sh/kernel/cpu/irq/intc2.c  |   86 ---------------------------------------
 arch/sh/mm/Kconfig              |    1 -
 include/asm-sh/hw_irq.h         |   18 --------
 5 files changed, 0 insertions(+), 109 deletions(-)

diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig
index 6553325..617765d 100644
--- a/arch/sh/Kconfig
+++ b/arch/sh/Kconfig
@@ -181,9 +181,6 @@ config CPU_HAS_MASKREG_IRQ
 config CPU_HAS_INTC_IRQ
        bool
 
-config CPU_HAS_INTC2_IRQ
-       bool
-
 config CPU_HAS_IPR_IRQ
        bool
 
diff --git a/arch/sh/kernel/cpu/irq/Makefile b/arch/sh/kernel/cpu/irq/Makefile
index 60bfc05..8712ec5 100644
--- a/arch/sh/kernel/cpu/irq/Makefile
+++ b/arch/sh/kernel/cpu/irq/Makefile
@@ -6,4 +6,3 @@ obj-y   += imask.o
 obj-$(CONFIG_CPU_HAS_IPR_IRQ)          += ipr.o
 obj-$(CONFIG_CPU_HAS_MASKREG_IRQ)      += maskreg.o
 obj-$(CONFIG_CPU_HAS_INTC_IRQ)         += intc.o
-obj-$(CONFIG_CPU_HAS_INTC2_IRQ)                += intc2.o
diff --git a/arch/sh/kernel/cpu/irq/intc2.c b/arch/sh/kernel/cpu/irq/intc2.c
deleted file mode 100644
index cc52213..0000000
--- a/arch/sh/kernel/cpu/irq/intc2.c
+++ /dev/null
@@ -1,86 +0,0 @@
-/*
- * Interrupt handling for INTC2-based IRQ.
- *
- * Copyright (C) 2001 David J. Mckay ([EMAIL PROTECTED])
- * Copyright (C) 2005, 2006 Paul Mundt ([EMAIL PROTECTED])
- *
- * May be copied or modified under the terms of the GNU General Public
- * License.  See linux/COPYING for more information.
- *
- * These are the "new Hitachi style" interrupts, as present on the
- * Hitachi 7751, the STM ST40 STB1, SH7760, and SH7780.
- */
-#include <linux/kernel.h>
-#include <linux/interrupt.h>
-#include <linux/io.h>
-#include <asm/smp.h>
-
-static inline struct intc2_desc *get_intc2_desc(unsigned int irq)
-{
-       struct irq_chip *chip = get_irq_chip(irq);
-       return (void *)((char *)chip - offsetof(struct intc2_desc, chip));
-}
-
-static void disable_intc2_irq(unsigned int irq)
-{
-       struct intc2_data *p = get_irq_chip_data(irq);
-       struct intc2_desc *d = get_intc2_desc(irq);
-
-       ctrl_outl(1 << p->msk_shift, d->msk_base + p->msk_offset +
-                                    (hard_smp_processor_id() * 4));
-}
-
-static void enable_intc2_irq(unsigned int irq)
-{
-       struct intc2_data *p = get_irq_chip_data(irq);
-       struct intc2_desc *d = get_intc2_desc(irq);
-
-       ctrl_outl(1 << p->msk_shift, d->mskclr_base + p->msk_offset +
-                                    (hard_smp_processor_id() * 4));
-}
-
-/*
- * Setup an INTC2 style interrupt.
- * NOTE: Unlike IPR interrupts, parameters are not shifted by this code,
- * allowing the use of the numbers straight out of the datasheet.
- * For example:
- *    PIO1 which is INTPRI00[19,16] and INTMSK00[13]
- * would be:               ^     ^             ^  ^
- *                         |     |             |  |
- *     { 84,              0,   16,            0, 13 },
- *
- * in the intc2_data table.
- */
-void register_intc2_controller(struct intc2_desc *desc)
-{
-       int i;
-
-       desc->chip.mask = disable_intc2_irq;
-       desc->chip.unmask = enable_intc2_irq;
-       desc->chip.mask_ack = disable_intc2_irq;
-
-       for (i = 0; i < desc->nr_irqs; i++) {
-               unsigned long ipr, flags;
-               struct intc2_data *p = desc->intc2_data + i;
-
-               disable_irq_nosync(p->irq);
-
-               if (desc->prio_base) {
-                       /* Set the priority level */
-                       local_irq_save(flags);
-
-                       ipr = ctrl_inl(desc->prio_base + p->ipr_offset);
-                       ipr &= ~(0xf << p->ipr_shift);
-                       ipr |= p->priority << p->ipr_shift;
-                       ctrl_outl(ipr, desc->prio_base + p->ipr_offset);
-
-                       local_irq_restore(flags);
-               }
-
-               set_irq_chip_and_handler_name(p->irq, &desc->chip,
-                                             handle_level_irq, "level");
-               set_irq_chip_data(p->irq, p);
-
-               disable_intc2_irq(p->irq);
-       }
-}
diff --git a/arch/sh/mm/Kconfig b/arch/sh/mm/Kconfig
index eca68da..569292c 100644
--- a/arch/sh/mm/Kconfig
+++ b/arch/sh/mm/Kconfig
@@ -31,7 +31,6 @@ config CPU_SH4AL_DSP
 config CPU_SUBTYPE_ST40
        bool
        select CPU_SH4
-       select CPU_HAS_INTC2_IRQ
 
 config CPU_SHX2
        bool
diff --git a/include/asm-sh/hw_irq.h b/include/asm-sh/hw_irq.h
index 9f55c2d..a4086ea 100644
--- a/include/asm-sh/hw_irq.h
+++ b/include/asm-sh/hw_irq.h
@@ -6,24 +6,6 @@
 
 extern atomic_t irq_err_count;
 
-struct intc2_data {
-       unsigned short irq;
-       unsigned char ipr_offset, ipr_shift;
-       unsigned char msk_offset, msk_shift;
-       unsigned char priority;
-};
-
-struct intc2_desc {
-       unsigned long prio_base;
-       unsigned long msk_base;
-       unsigned long mskclr_base;
-       struct intc2_data *intc2_data;
-       unsigned int nr_irqs;
-       struct irq_chip chip;
-};
-
-void register_intc2_controller(struct intc2_desc *);
-
 struct ipr_data {
        unsigned char irq;
        unsigned char ipr_idx;          /* Index for the IPR registered */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to