]> Pileus Git - ~andy/linux/commitdiff
MIPS: SNI: pcimt: Guard sni_controller with CONFIG_PCI
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 24 Jun 2013 14:42:21 +0000 (14:42 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 25 Jun 2013 14:47:33 +0000 (16:47 +0200)
Fixes the following build problem:

arch/mips/sni/pcimt.c:188:30: error: 'sni_controller'
defined but not used [-Werror=unused-variable]

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5547/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/sni/pcimt.c

index cec4b8ca143817c7c74c422dfa644166359bf420..12336c2a649c4c3eb9bc117e7fafddf4b3ad77b9 100644 (file)
@@ -185,6 +185,7 @@ static void __init sni_pcimt_resource_init(void)
 
 extern struct pci_ops sni_pcimt_ops;
 
+#ifdef CONFIG_PCI
 static struct pci_controller sni_controller = {
        .pci_ops        = &sni_pcimt_ops,
        .mem_resource   = &sni_mem_resource,
@@ -193,6 +194,7 @@ static struct pci_controller sni_controller = {
        .io_offset      = 0x00000000UL,
        .io_map_base    = SNI_PORT_BASE
 };
+#endif
 
 static void enable_pcimt_irq(struct irq_data *d)
 {