Skip to content

Commit

Permalink
powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled
Browse files Browse the repository at this point in the history
Fix the following warning:
arch/powerpc/sysdev/fsl_pci.c: In function 'fsl_pci_probe':
arch/powerpc/sysdev/fsl_pci.c:867:25: error: unused variable 'hose'

Signed-off-by: Jia Hongtao <B38951@freescale.com>
Acked-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
  • Loading branch information
Jia Hongtao authored and Kumar Gala committed Sep 19, 2012
1 parent 721c070 commit 4d56dec
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/powerpc/sysdev/fsl_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,7 +864,9 @@ static int __devinit fsl_pci_probe(struct platform_device *pdev)
{
int ret;
struct device_node *node;
#ifdef CONFIG_SWIOTLB
struct pci_controller *hose;
#endif

node = pdev->dev.of_node;
ret = fsl_add_bridge(node, fsl_pci_primary == node);
Expand Down

0 comments on commit 4d56dec

Please sign in to comment.