diff options
| author | Thomas Gleixner <tglx@linutronix.de> | 2006-07-01 22:29:47 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-02 16:58:55 -0400 |
| commit | 6ce6c7faf2d0fede5e1530b0f731a90f138fd69e (patch) | |
| tree | eead4459ad413d88c342fcbf3470b0ac16225608 /Documentation | |
| parent | 65ca68b30073473583f6ca2f463cbd94ade43ddb (diff) | |
[PATCH] irq-flags: documentation: Use the new IRQF_ constants
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: "Randy.Dunlap" <rdunlap@xenotime.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/DocBook/videobook.tmpl | 2 | ||||
| -rw-r--r-- | Documentation/pci.txt | 2 | ||||
| -rw-r--r-- | Documentation/scsi/tmscsim.txt | 2 | ||||
| -rw-r--r-- | Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl | 6 |
4 files changed, 6 insertions, 6 deletions
diff --git a/Documentation/DocBook/videobook.tmpl b/Documentation/DocBook/videobook.tmpl index fdff984a5161..b629da33951d 100644 --- a/Documentation/DocBook/videobook.tmpl +++ b/Documentation/DocBook/videobook.tmpl | |||
| @@ -976,7 +976,7 @@ static int camera_close(struct video_device *dev) | |||
| 976 | <title>Interrupt Handling</title> | 976 | <title>Interrupt Handling</title> |
| 977 | <para> | 977 | <para> |
| 978 | Our example handler is for an ISA bus device. If it was PCI you would be | 978 | Our example handler is for an ISA bus device. If it was PCI you would be |
| 979 | able to share the interrupt and would have set SA_SHIRQ to indicate a | 979 | able to share the interrupt and would have set IRQF_SHARED to indicate a |
| 980 | shared IRQ. We pass the device pointer as the interrupt routine argument. We | 980 | shared IRQ. We pass the device pointer as the interrupt routine argument. We |
| 981 | don't need to since we only support one card but doing this will make it | 981 | don't need to since we only support one card but doing this will make it |
| 982 | easier to upgrade the driver for multiple devices in the future. | 982 | easier to upgrade the driver for multiple devices in the future. |
diff --git a/Documentation/pci.txt b/Documentation/pci.txt index 3242e5c1ee9c..2b395e478961 100644 --- a/Documentation/pci.txt +++ b/Documentation/pci.txt | |||
| @@ -225,7 +225,7 @@ Generic flavors of pci_request_region() are request_mem_region() | |||
| 225 | Use these for address resources that are not described by "normal" PCI | 225 | Use these for address resources that are not described by "normal" PCI |
| 226 | interfaces (e.g. BAR). | 226 | interfaces (e.g. BAR). |
| 227 | 227 | ||
| 228 | All interrupt handlers should be registered with SA_SHIRQ and use the devid | 228 | All interrupt handlers should be registered with IRQF_SHARED and use the devid |
| 229 | to map IRQs to devices (remember that all PCI interrupts are shared). | 229 | to map IRQs to devices (remember that all PCI interrupts are shared). |
| 230 | 230 | ||
| 231 | 231 | ||
diff --git a/Documentation/scsi/tmscsim.txt b/Documentation/scsi/tmscsim.txt index e165229adf50..df7a02bfb5bf 100644 --- a/Documentation/scsi/tmscsim.txt +++ b/Documentation/scsi/tmscsim.txt | |||
| @@ -109,7 +109,7 @@ than the 33.33 MHz being in the PCI spec. | |||
| 109 | 109 | ||
| 110 | If you want to share the IRQ with another device and the driver refuses to | 110 | If you want to share the IRQ with another device and the driver refuses to |
| 111 | do so, you might succeed with changing the DC390_IRQ type in tmscsim.c to | 111 | do so, you might succeed with changing the DC390_IRQ type in tmscsim.c to |
| 112 | SA_SHIRQ | SA_INTERRUPT. | 112 | IRQF_SHARED | IRQF_DISABLED. |
| 113 | 113 | ||
| 114 | 114 | ||
| 115 | 3.Features | 115 | 3.Features |
diff --git a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl index bb18115d5170..69866d5997a4 100644 --- a/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl +++ b/Documentation/sound/alsa/DocBook/writing-an-alsa-driver.tmpl | |||
| @@ -1149,7 +1149,7 @@ | |||
| 1149 | } | 1149 | } |
| 1150 | chip->port = pci_resource_start(pci, 0); | 1150 | chip->port = pci_resource_start(pci, 0); |
| 1151 | if (request_irq(pci->irq, snd_mychip_interrupt, | 1151 | if (request_irq(pci->irq, snd_mychip_interrupt, |
| 1152 | SA_INTERRUPT|SA_SHIRQ, "My Chip", chip)) { | 1152 | IRQF_DISABLED|IRQF_SHARED, "My Chip", chip)) { |
| 1153 | printk(KERN_ERR "cannot grab irq %d\n", pci->irq); | 1153 | printk(KERN_ERR "cannot grab irq %d\n", pci->irq); |
| 1154 | snd_mychip_free(chip); | 1154 | snd_mychip_free(chip); |
| 1155 | return -EBUSY; | 1155 | return -EBUSY; |
| @@ -1323,7 +1323,7 @@ | |||
| 1323 | <programlisting> | 1323 | <programlisting> |
| 1324 | <