linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] 3c515: fix using pnp_get_resource when CONFIG_ISAPNP=n
@ 2008-05-16 17:35 Randy Dunlap
  2008-05-16 18:15 ` Bjorn Helgaas
  2008-05-22 11:09 ` Jeff Garzik
  0 siblings, 2 replies; 5+ messages in thread
From: Randy Dunlap @ 2008-05-16 17:35 UTC (permalink / raw)
  To: netdev, jgarzik; +Cc: linux-next, bjorn.helgaas, akpm

From: Randy Dunlap <randy.dunlap@oracle.com>

3c515.c uses pnp_irq(), which calls pnp_get_resource(),
which is not defined when CONFIG_PNP=n, so in that case,
get the IRQ from a hardware register.

3c515.c:(.text+0x3adc0): undefined reference to `pnp_get_resource'

Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com>
---
 drivers/net/3c515.c |    4 ++++
 1 file changed, 4 insertions(+)

--- next-20080516.orig/drivers/net/3c515.c
+++ next-20080516/drivers/net/3c515.c
@@ -572,12 +572,16 @@ static int corkscrew_setup(struct net_de
 	int irq;
 	DECLARE_MAC_BUF(mac);
 
+#ifdef __ISAPNP__
 	if (idev) {
 		irq = pnp_irq(idev, 0);
 		vp->dev = &idev->dev;
 	} else {
 		irq = inw(ioaddr + 0x2002) & 15;
 	}
+#else
+	irq = inw(ioaddr + 0x2002) & 15;
+#endif
 
 	dev->base_addr = ioaddr;
 	dev->irq = irq;

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-05-22 11:09 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-16 17:35 [PATCH -next] 3c515: fix using pnp_get_resource when CONFIG_ISAPNP=n Randy Dunlap
2008-05-16 18:15 ` Bjorn Helgaas
2008-05-16 18:21   ` Randy Dunlap
2008-05-16 18:58     ` Bjorn Helgaas
2008-05-22 11:09 ` Jeff Garzik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).