Skip to content

Commit

Permalink
Docs: MSI-HOWTO: Put the `because' subordinate clause first
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Witten <[email protected]>
Acked-by: Matthew Wilcox <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
  • Loading branch information
mfwitten committed Aug 2, 2011
1 parent 1d15afc commit 263d8d5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Documentation/PCI/MSI-HOWTO.txt
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ interrupt number and frees the previously allocated message signaled
interrupt(s). The interrupt may subsequently be assigned to another
device, so drivers should not cache the value of dev->irq.

A device driver must always call free_irq() on the interrupt(s)
for which it has called request_irq() before calling this function.
Before calling this function, a device driver must always call free_irq()
on any interrupt for which it previously called request_irq().
Failure to do so results in a BUG_ON(), leaving the device with
MSI enabled and thus leaking its vector.

Expand Down Expand Up @@ -217,8 +217,8 @@ the previously allocated message signaled interrupts. The interrupts may
subsequently be assigned to another device, so drivers should not cache
the value of the 'vector' elements over a call to pci_disable_msix().

A device driver must always call free_irq() on the interrupt(s)
for which it has called request_irq() before calling this function.
Before calling this function, a device driver must always call free_irq()
on any interrupt for which it previously called request_irq().
Failure to do so results in a BUG_ON(), leaving the device with
MSI-X enabled and thus leaking its vector.

Expand Down

0 comments on commit 263d8d5

Please sign in to comment.