[PATCH] Isapnp warning

From: Geert Uytterhoeven
Date: Fri Aug 29 2003 - 09:52:52 EST


Isapnp: Kill warning if CONFIG_PCI is not set, like it's done in 2.6.0.

--- linux-2.4.23-pre1/drivers/pnp/isapnp.c Sat Aug 17 14:10:39 2002
+++ linux-m68k-2.4.23-pre1/drivers/pnp/isapnp.c Fri Jun 6 12:27:42 2003
@@ -510,7 +510,6 @@
int dependent, int size)
{
unsigned char tmp[3];
- int i;
struct isapnp_irq *irq, *ptr;

isapnp_peek(tmp, size);
@@ -538,9 +537,13 @@
else
(*res)->irq = irq;
#ifdef CONFIG_PCI
- for (i=0; i<16; i++)
- if (irq->map & (1<<i))
- pcibios_penalize_isa_irq(i);
+ {
+ int i;
+
+ for (i=0; i<16; i++)
+ if (irq->map & (1<<i))
+ pcibios_penalize_isa_irq(i);
+ }
#endif
}


Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/