Apply patch 200-fix_deprecated_interrupt_definations.patch directly
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 31 Jan 2010 15:07:49 +0000 (15:07 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 31 Jan 2010 15:07:49 +0000 (15:07 +0000)
SVN-Revision: 19454

target/linux/amazon/files/arch/mips/amazon/dma-core.c
target/linux/amazon/files/arch/mips/amazon/interrupt.c
target/linux/amazon/files/arch/mips/amazon/setup.c
target/linux/amazon/files/drivers/atm/amazon_tpe.c
target/linux/amazon/patches-2.6.30/200-fix_deprecated_interrupt_definations.patch [deleted file]

index 242bc77af21327cea59bae82a3ce7dbe17b30f76..6362895f876251c7c085a335c7ff19ae206741f9 100644 (file)
@@ -1387,7 +1387,7 @@ static int dma_init(void)
                AMAZON_DMA_EMSG("cannot register device dma-core!\n");
                return result;
        }
-       result = request_irq(AMAZON_DMA_INT, dma_interrupt, SA_INTERRUPT, "dma-core", (void *) &dma_interrupt);
+       result = request_irq(AMAZON_DMA_INT, dma_interrupt, IRQF_DISABLED, "dma-core", (void *) &dma_interrupt);
        if (result) {
                AMAZON_DMA_EMSG("error, cannot get dma_irq!\n");
                free_irq(AMAZON_DMA_INT, (void *) &dma_interrupt);
index 5e34e0577b846f3e94ed16ceda19bbd73e15c8dd..e61ccdfc3df42d6f192a1cb941014acdcab27d5c 100644 (file)
@@ -157,7 +157,7 @@ out:
 
 static struct irqaction cascade = {
        .handler        = no_action,
-       .flags          = SA_INTERRUPT,
+       .flags          = IRQF_DISABLED,
        .name           = "cascade",
 };
 
index 45ff2544fc3f937e367b0861bdddcca3309e2850..8c3c86c0fa8b82e98ca8711d5b9535a583d7bcc3 100644 (file)
@@ -107,7 +107,7 @@ static void amazon_timer6_interrupt(int irq, void *dev_id)
 
 static struct irqaction hrt_irqaction = {
        .handler = amazon_timer6_interrupt,
-       .flags = SA_INTERRUPT,
+       .flags = IRQF_DISABLED,
        .name = "hrt",
 };
 
index cf3e407329a325a130b9c349412e9b9658c8effb..b50749440783874aba88e0b287f9ab87f3b243cc 100644 (file)
@@ -2404,13 +2404,13 @@ amazon_atm_dev_t * amazon_atm_create(void)
 
 
        // Register interrupts for insertion and extraction
-       request_irq(AMAZON_SWIE_INT, amazon_atm_swie_isr, SA_INTERRUPT, "tpe_swie", NULL);
-       request_irq(AMAZON_CBM_INT, amazon_atm_cbm_isr, SA_INTERRUPT, "tpe_cbm", NULL);
+       request_irq(AMAZON_SWIE_INT, amazon_atm_swie_isr, IRQF_DISABLED, "tpe_swie", NULL);
+       request_irq(AMAZON_CBM_INT, amazon_atm_cbm_isr, IRQF_DISABLED, "tpe_cbm", NULL);
 #ifdef AMAZON_ATM_DEBUG
-       request_irq(AMAZON_HTU_INT , amazon_atm_htu_isr, SA_INTERRUPT, "tpe_htu", NULL);
+       request_irq(AMAZON_HTU_INT , amazon_atm_htu_isr, IRQF_DISABLED, "tpe_htu", NULL);
 #endif
 #ifdef AMAZON_TPE_TEST_AAL5_INT        
-       request_irq(AMAZON_AAL5_INT, amazon_atm_aal5_isr, SA_INTERRUPT, "tpe_aal5", NULL);
+       request_irq(AMAZON_AAL5_INT, amazon_atm_aal5_isr, IRQF_DISABLED, "tpe_aal5", NULL);
 #endif
        return &g_atm_dev;
 }
diff --git a/target/linux/amazon/patches-2.6.30/200-fix_deprecated_interrupt_definations.patch b/target/linux/amazon/patches-2.6.30/200-fix_deprecated_interrupt_definations.patch
deleted file mode 100644 (file)
index 3c683e0..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
---- a/arch/mips/amazon/dma-core.c
-+++ b/arch/mips/amazon/dma-core.c
-@@ -1387,7 +1387,7 @@ static int dma_init(void)
-               AMAZON_DMA_EMSG("cannot register device dma-core!\n");
-               return result;
-       }
--      result = request_irq(AMAZON_DMA_INT, dma_interrupt, SA_INTERRUPT, "dma-core", (void *) &dma_interrupt);
-+      result = request_irq(AMAZON_DMA_INT, dma_interrupt, IRQF_DISABLED, "dma-core", (void *) &dma_interrupt);
-       if (result) {
-               AMAZON_DMA_EMSG("error, cannot get dma_irq!\n");
-               free_irq(AMAZON_DMA_INT, (void *) &dma_interrupt);
---- a/arch/mips/amazon/interrupt.c
-+++ b/arch/mips/amazon/interrupt.c
-@@ -157,7 +157,7 @@ out:
- static struct irqaction cascade = {
-       .handler        = no_action,
--      .flags          = SA_INTERRUPT,
-+      .flags          = IRQF_DISABLED,
-       .name           = "cascade",
- };
---- a/arch/mips/amazon/setup.c
-+++ b/arch/mips/amazon/setup.c
-@@ -107,7 +107,7 @@ static void amazon_timer6_interrupt(int 
- static struct irqaction hrt_irqaction = {
-       .handler = amazon_timer6_interrupt,
--      .flags = SA_INTERRUPT,
-+      .flags = IRQF_DISABLED,
-       .name = "hrt",
- };
---- a/drivers/atm/amazon_tpe.c
-+++ b/drivers/atm/amazon_tpe.c
-@@ -2404,13 +2404,13 @@ amazon_atm_dev_t * amazon_atm_create(voi
-       // Register interrupts for insertion and extraction
--      request_irq(AMAZON_SWIE_INT, amazon_atm_swie_isr, SA_INTERRUPT, "tpe_swie", NULL);
--      request_irq(AMAZON_CBM_INT, amazon_atm_cbm_isr, SA_INTERRUPT, "tpe_cbm", NULL);
-+      request_irq(AMAZON_SWIE_INT, amazon_atm_swie_isr, IRQF_DISABLED, "tpe_swie", NULL);
-+      request_irq(AMAZON_CBM_INT, amazon_atm_cbm_isr, IRQF_DISABLED, "tpe_cbm", NULL);
- #ifdef AMAZON_ATM_DEBUG
--      request_irq(AMAZON_HTU_INT , amazon_atm_htu_isr, SA_INTERRUPT, "tpe_htu", NULL);
-+      request_irq(AMAZON_HTU_INT , amazon_atm_htu_isr, IRQF_DISABLED, "tpe_htu", NULL);
- #endif
- #ifdef AMAZON_TPE_TEST_AAL5_INT       
--      request_irq(AMAZON_AAL5_INT, amazon_atm_aal5_isr, SA_INTERRUPT, "tpe_aal5", NULL);
-+      request_irq(AMAZON_AAL5_INT, amazon_atm_aal5_isr, IRQF_DISABLED, "tpe_aal5", NULL);
- #endif
-       return &g_atm_dev;
- }