Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 374701
b: refs/heads/master
c: 8db4914
h: refs/heads/master
i:
  374699: c58bd79
v: v3
  • Loading branch information
Peter Hurley authored and Stefan Richter committed Apr 28, 2013
1 parent f4478e5 commit 44e09c7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 247fd50b5953d2b07832a07bd1d1c3b8e221fe9e
refs/heads/master: 8db491490b88c8b016b41ad56ac980c4cbb06d7a
13 changes: 9 additions & 4 deletions trunk/drivers/firewire/ohci.c
Original file line number Diff line number Diff line change
Expand Up @@ -3712,11 +3712,16 @@ static int pci_probe(struct pci_dev *dev,

static void pci_remove(struct pci_dev *dev)
{
struct fw_ohci *ohci;
struct fw_ohci *ohci = pci_get_drvdata(dev);

ohci = pci_get_drvdata(dev);
reg_write(ohci, OHCI1394_IntMaskClear, ~0);
flush_writes(ohci);
/*
* If the removal is happening from the suspend state, LPS won't be
* enabled and host registers (eg., IntMaskClear) won't be accessible.
*/
if (reg_read(ohci, OHCI1394_HCControlSet) & OHCI1394_HCControl_LPS) {
reg_write(ohci, OHCI1394_IntMaskClear, ~0);
flush_writes(ohci);
}
cancel_work_sync(&ohci->bus_reset_work);
fw_core_remove_card(&ohci->card);

Expand Down

0 comments on commit 44e09c7

Please sign in to comment.