aboutsummaryrefslogtreecommitdiffstats
path: root/package/ep80579-drivers/patches/003-new_irqf_constants.patch
diff options
context:
space:
mode:
authorImre Kaloz <kaloz@openwrt.org>2010-04-01 12:05:27 +0000
committerImre Kaloz <kaloz@openwrt.org>2010-04-01 12:05:27 +0000
commitd3b9b93dd3df29460b21b1b4daa556f81f5780ba (patch)
treecc73f5514469c1e04792265df26b16380e00a843 /package/ep80579-drivers/patches/003-new_irqf_constants.patch
parent6e383d7ef0894885429728affbf94c7d5a2bbe46 (diff)
downloadupstream-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.tar.gz
upstream-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.tar.bz2
upstream-d3b9b93dd3df29460b21b1b4daa556f81f5780ba.zip
add a subtarget and drivers for the Intel Tolapai SoC
SVN-Revision: 20648
Diffstat (limited to 'package/ep80579-drivers/patches/003-new_irqf_constants.patch')
-rw-r--r--package/ep80579-drivers/patches/003-new_irqf_constants.patch53
1 files changed, 53 insertions, 0 deletions
diff --git a/package/ep80579-drivers/patches/003-new_irqf_constants.patch b/package/ep80579-drivers/patches/003-new_irqf_constants.patch
new file mode 100644
index 0000000000..4f1c0829a5
--- /dev/null
+++ b/package/ep80579-drivers/patches/003-new_irqf_constants.patch
@@ -0,0 +1,53 @@
+--- a/Embedded/src/1588/1588.c
++++ b/Embedded/src/1588/1588.c
+@@ -291,7 +291,7 @@ int pci_probe(struct pci_dev *dev, const
+
+ }
+
+- if ( request_irq(dev->irq, &timesync_isr, SA_SHIRQ, DRIVERNAME,
++ if ( request_irq(dev->irq, &timesync_isr, IRQF_SHARED, DRIVERNAME,
+ &g_drvr_data) )
+ {
+ printk("%s-pci_probe: irq\n", DRIVERNAME);
+--- a/Embedded/src/CAN/can_main.c
++++ b/Embedded/src/CAN/can_main.c
+@@ -424,7 +424,7 @@ int can_open(struct inode *inode, struct
+ err = request_irq(
+ can_os->irq,
+ can_irq_handler,
+- SA_SHIRQ,
++ IRQF_SHARED,
+ iminor(can_os->inode) ? CAN_PROC_1 : CAN_PROC_0,
+ &(g_can_os[iminor(can_os->inode)])
+ );
+--- a/Embedded/src/EDMA/dma_linux.c
++++ b/Embedded/src/EDMA/dma_linux.c
+@@ -367,7 +367,7 @@ int32_t edma_resume(struct pci_dev *dev)
+ return -ENODEV;
+ }
+
+- if (request_irq(dev->irq, &edma_irq_handler, SA_SHIRQ,
++ if (request_irq(dev->irq, &edma_irq_handler, IRQF_SHARED,
+ g_char_drvr_name, dev) )
+ {
+
+@@ -829,7 +829,7 @@ int32_t edma_probe(struct pci_dev * dev,
+ /*
+ * Obtain a (shared) Interrupt Request (IRQ) Line from the OS.
+ */
+- if (request_irq(dev->irq, &edma_irq_handler, SA_SHIRQ,
++ if (request_irq(dev->irq, &edma_irq_handler, IRQF_SHARED,
+ g_char_drvr_name, dev) )
+ {
+
+--- a/Embedded/src/WDT/iwdt.c
++++ b/Embedded/src/WDT/iwdt.c
+@@ -1461,7 +1461,7 @@ static int __init wdt_init_one(struct pc
+
+ /* Request irq only if wdt_irq is other than 0 */
+ if (wdt_irq) {
+- if (request_irq(wdt_irq, wdt_isr, SA_INTERRUPT | SA_SHIRQ,
++ if (request_irq(wdt_irq, wdt_isr, IRQF_DISABLED | IRQF_SHARED,
+ "iwdt", &wdt_miscdev)) {
+ printk("IRQ %d is not free.\n", wdt_irq);
+ return -EIO;