summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pcmcia_ioctl.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-06-27 16:28:53 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 18:03:20 -0700
commit33519ddd43f4adc221ee7b2801dedd19ac97540b (patch)
treef80b15281279ff58fcfce01f15d32153cd825ec1 /drivers/pcmcia/pcmcia_ioctl.c
parent1a8d46631e166a3c79fe1466ce8cfc4721fdf780 (diff)
downloadop-kernel-dev-33519ddd43f4adc221ee7b2801dedd19ac97540b.zip
op-kernel-dev-33519ddd43f4adc221ee7b2801dedd19ac97540b.tar.gz
[PATCH] pcmcia: cs.c cleanup
Clean up cs.c Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/pcmcia/pcmcia_ioctl.c')
-rw-r--r--drivers/pcmcia/pcmcia_ioctl.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c
index 7aa2e7f..fa2a79d 100644
--- a/drivers/pcmcia/pcmcia_ioctl.c
+++ b/drivers/pcmcia/pcmcia_ioctl.c
@@ -275,8 +275,16 @@ rescan:
return (ret);
} /* bind_request */
+#ifdef CONFIG_CARDBUS
+
+static struct pci_bus *pcmcia_lookup_bus(struct pcmcia_socket *s)
+{
+ if (!s || !(s->state & SOCKET_CARDBUS))
+ return NULL;
-extern struct pci_bus *pcmcia_lookup_bus(struct pcmcia_socket *s);
+ return s->cb_dev->subordinate;
+}
+#endif
static int get_device_info(struct pcmcia_socket *s, bind_info_t *bind_info, int first)
{
OpenPOWER on IntegriCloud