aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ieee1394
diff options
context:
space:
mode:
authorStefan Richter <stefanr@s5r6.in-berlin.de>2006-11-10 18:23:50 -0500
committerStefan Richter <stefanr@s5r6.in-berlin.de>2006-12-07 17:04:24 -0500
commit5370f1f5e94f1734f0706044bfb95007ea90fb23 (patch)
tree78791709cbc01063b6948b079e1cb7e5b0579118 /drivers/ieee1394
parent48cfae44b4d6c7ca843d611a93ed2f94b59bcb38 (diff)
ieee1394: ohci1394: reformat PPC_PMAC platform code
Adjust whitespace and line lengths Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394')
-rw-r--r--drivers/ieee1394/ohci1394.c34
1 files changed, 14 insertions, 20 deletions
diff --git a/drivers/ieee1394/ohci1394.c b/drivers/ieee1394/ohci1394.c
index 453d0be694e4..3c9dc7d24410 100644
--- a/drivers/ieee1394/ohci1394.c
+++ b/drivers/ieee1394/ohci1394.c
@@ -3218,12 +3218,11 @@ static int __devinit ohci1394_pci_probe(struct pci_dev *dev,
3218#ifdef CONFIG_PPC_PMAC 3218#ifdef CONFIG_PPC_PMAC
3219 /* Necessary on some machines if ohci1394 was loaded/ unloaded before */ 3219 /* Necessary on some machines if ohci1394 was loaded/ unloaded before */
3220 if (machine_is(powermac)) { 3220 if (machine_is(powermac)) {
3221 struct device_node *of_node = pci_device_to_OF_node(dev); 3221 struct device_node *ofn = pci_device_to_OF_node(dev);
3222 3222
3223 if (of_node) { 3223 if (ofn) {
3224 pmac_call_feature(PMAC_FTR_1394_CABLE_POWER, of_node, 3224 pmac_call_feature(PMAC_FTR_1394_CABLE_POWER, ofn, 0, 1);
3225 0, 1); 3225 pmac_call_feature(PMAC_FTR_1394_ENABLE, ofn, 0, 1);
3226 pmac_call_feature(PMAC_FTR_1394_ENABLE, of_node, 0, 1);
3227 } 3226 }
3228 } 3227 }
3229#endif /* CONFIG_PPC_PMAC */ 3228#endif /* CONFIG_PPC_PMAC */
@@ -3519,12 +3518,11 @@ static void ohci1394_pci_remove(struct pci_dev *pdev)
3519 /* On UniNorth, power down the cable and turn off the chip clock 3518 /* On UniNorth, power down the cable and turn off the chip clock
3520 * to save power on laptops */ 3519 * to save power on laptops */
3521 { 3520 {
3522 struct device_node* of_node; 3521 struct device_node* ofn = pci_device_to_OF_node(ohci->dev);
3523 3522
3524 of_node = pci_device_to_OF_node(ohci->dev); 3523 if (ofn) {
3525 if (of_node) { 3524 pmac_call_feature(PMAC_FTR_1394_ENABLE, ofn, 0, 0);
3526 pmac_call_feature(PMAC_FTR_1394_ENABLE, of_node, 0, 0); 3525 pmac_call_feature(PMAC_FTR_1394_CABLE_POWER, ofn, 0, 0);
3527 pmac_call_feature(PMAC_FTR_1394_CABLE_POWER, of_node, 0, 0);
3528 } 3526 }
3529 } 3527 }
3530#endif /* CONFIG_PPC_PMAC */ 3528#endif /* CONFIG_PPC_PMAC */
@@ -3584,12 +3582,10 @@ static int ohci1394_pci_suspend(struct pci_dev *pdev, pm_message_t state)
3584/* PowerMac suspend code comes last */ 3582/* PowerMac suspend code comes last */
3585#ifdef CONFIG_PPC_PMAC 3583#ifdef CONFIG_PPC_PMAC
3586 if (machine_is(powermac)) { 3584 if (machine_is(powermac)) {
3587 struct device_node *of_node; 3585 struct device_node *ofn = pci_device_to_OF_node(pdev);
3588 3586
3589 /* Disable 1394 */ 3587 if (ofn)
3590 of_node = pci_device_to_OF_node (pdev); 3588 pmac_call_feature(PMAC_FTR_1394_ENABLE, ofn, 0, 0);
3591 if (of_node)
3592 pmac_call_feature(PMAC_FTR_1394_ENABLE, of_node, 0, 0);
3593 } 3589 }
3594#endif /* CONFIG_PPC_PMAC */ 3590#endif /* CONFIG_PPC_PMAC */
3595 3591
@@ -3611,12 +3607,10 @@ static int ohci1394_pci_resume(struct pci_dev *pdev)
3611/* PowerMac resume code comes first */ 3607/* PowerMac resume code comes first */
3612#ifdef CONFIG_PPC_PMAC 3608#ifdef CONFIG_PPC_PMAC
3613 if (machine_is(powermac)) { 3609 if (machine_is(powermac)) {
3614 struct device_node *of_node; 3610 struct device_node *ofn = pci_device_to_OF_node(pdev);
3615 3611
3616 /* Re-enable 1394 */ 3612 if (ofn)
3617 of_node = pci_device_to_OF_node (pdev); 3613 pmac_call_feature(PMAC_FTR_1394_ENABLE, ofn, 0, 1);
3618 if (of_node)
3619 pmac_call_feature (PMAC_FTR_1394_ENABLE, of_node, 0, 1);
3620 } 3614 }
3621#endif /* CONFIG_PPC_PMAC */ 3615#endif /* CONFIG_PPC_PMAC */
3622 3616