Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6006
b: refs/heads/master
c: 3515d01
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro authored and Linus Torvalds committed Aug 26, 2005
1 parent f62c695 commit 77c3dd5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: a46206e74e1897bf34d6b58f0991a0d6f3797e27
refs/heads/master: 3515d0161d55d2fa1a340932625f94240a68c262
8 changes: 7 additions & 1 deletion trunk/drivers/ieee1394/ohci1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ static void ohci_initialize(struct ti_ohci *ohci)
int num_ports, i;

spin_lock_init(&ohci->phy_reg_lock);
spin_lock_init(&ohci->event_lock);

/* Put some defaults to these undefined bus options */
buf = reg_read(ohci, OHCI1394_BusOptions);
Expand Down Expand Up @@ -3402,7 +3401,14 @@ static int __devinit ohci1394_pci_probe(struct pci_dev *dev,
/* We hopefully don't have to pre-allocate IT DMA like we did
* for IR DMA above. Allocate it on-demand and mark inactive. */
ohci->it_legacy_context.ohci = NULL;
spin_lock_init(&ohci->event_lock);

/*
* interrupts are disabled, all right, but... due to SA_SHIRQ we
* might get called anyway. We'll see no event, of course, but
* we need to get to that "no event", so enough should be initialized
* by that point.
*/
if (request_irq(dev->irq, ohci_irq_handler, SA_SHIRQ,
OHCI1394_DRIVER_NAME, ohci))
FAIL(-ENOMEM, "Failed to allocate shared interrupt %d", dev->irq);
Expand Down

0 comments on commit 77c3dd5

Please sign in to comment.