Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43460
b: refs/heads/master
c: 48cfae4
h: refs/heads/master
v: v3
  • Loading branch information
Stefan Richter committed Dec 7, 2006
1 parent 07335dd commit 363f67d
Show file tree
Hide file tree
Showing 2 changed files with 16 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: 58272c1c0330f5f899f130d45ce845ca085de044
refs/heads/master: 48cfae44b4d6c7ca843d611a93ed2f94b59bcb38
19 changes: 15 additions & 4 deletions trunk/drivers/ieee1394/ohci1394.c
Original file line number Diff line number Diff line change
Expand Up @@ -3215,6 +3215,19 @@ static int __devinit ohci1394_pci_probe(struct pci_dev *dev,
struct ti_ohci *ohci; /* shortcut to currently handled device */
resource_size_t ohci_base;

#ifdef CONFIG_PPC_PMAC
/* Necessary on some machines if ohci1394 was loaded/ unloaded before */
if (machine_is(powermac)) {
struct device_node *of_node = pci_device_to_OF_node(dev);

if (of_node) {
pmac_call_feature(PMAC_FTR_1394_CABLE_POWER, of_node,
0, 1);
pmac_call_feature(PMAC_FTR_1394_ENABLE, of_node, 0, 1);
}
}
#endif /* CONFIG_PPC_PMAC */

if (pci_enable_device(dev))
FAIL(-ENXIO, "Failed to enable OHCI hardware");
pci_set_master(dev);
Expand Down Expand Up @@ -3503,10 +3516,8 @@ static void ohci1394_pci_remove(struct pci_dev *pdev)
#endif

#ifdef CONFIG_PPC_PMAC
/* On UniNorth, power down the cable and turn off the chip
* clock when the module is removed to save power on
* laptops. Turning it back ON is done by the arch code when
* pci_enable_device() is called */
/* On UniNorth, power down the cable and turn off the chip clock
* to save power on laptops */
{
struct device_node* of_node;

Expand Down

0 comments on commit 363f67d

Please sign in to comment.