Skip to content

Commit

Permalink
MIPS: SNI: pcimt: Guard sni_controller with CONFIG_PCI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Markos Chandras authored and Ralf Baechle committed Jun 25, 2013
1 parent 0be0aea commit 5bd8076
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/mips/sni/pcimt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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)
{
Expand Down

0 comments on commit 5bd8076

Please sign in to comment.