* [PATCH] remove ifdef CONFIG_PCI from envctrl.c
@ 2005-08-09 20:31 Christoph Hellwig
2005-08-09 21:38 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: Christoph Hellwig @ 2005-08-09 20:31 UTC (permalink / raw)
To: sparclinux
The driver already depends on CONFIG_PCI in Kconfig. What I don't quite
understand yet is why a PCI-only driver sits in drivers/sbus/ ..
Signed-off-by: Christoph Hellwig <hch@lst.de>
Index: linux-2.6/drivers/sbus/char/envctrl.c
=================================--- linux-2.6.orig/drivers/sbus/char/envctrl.c 2005-08-09 20:16:59.000000000 +0200
+++ linux-2.6/drivers/sbus/char/envctrl.c 2005-08-09 22:29:45.000000000 +0200
@@ -1041,7 +1041,6 @@
static int __init envctrl_init(void)
{
-#ifdef CONFIG_PCI
struct linux_ebus *ebus = NULL;
struct linux_ebus_device *edev = NULL;
struct linux_ebus_child *edev_child = NULL;
@@ -1133,9 +1132,6 @@
kfree(i2c_childlist[i].tables);
}
return err;
-#else
- return -ENODEV;
-#endif
}
static void __exit envctrl_cleanup(void)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-08-09 21:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-09 20:31 [PATCH] remove ifdef CONFIG_PCI from envctrl.c Christoph Hellwig
2005-08-09 21:38 ` David S. Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.