powerpc/fsl-pci: fix warning when CONFIG_SWIOTLB is disabled
authorJia Hongtao <B38951@freescale.com>
Tue, 18 Sep 2012 09:57:48 +0000 (17:57 +0800)
committerKumar Gala <galak@kernel.crashing.org>
Wed, 19 Sep 2012 13:41:46 +0000 (08:41 -0500)
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>
arch/powerpc/sysdev/fsl_pci.c

index 2ff3576..3d6f4d8 100644 (file)
@@ -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);