aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pcmcia_ioctl.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2005-06-27 19:28:53 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-06-27 21:03:20 -0400
commit33519ddd43f4adc221ee7b2801dedd19ac97540b (patch)
treef80b15281279ff58fcfce01f15d32153cd825ec1 /drivers/pcmcia/pcmcia_ioctl.c
parent1a8d46631e166a3c79fe1466ce8cfc4721fdf780 (diff)
[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 7aa2e7f20d50..fa2a79d29e16 100644
--- a/drivers/pcmcia/pcmcia_ioctl.c
+++ b/drivers/pcmcia/pcmcia_ioctl.c
@@ -275,8 +275,16 @@ rescan:
275 return (ret); 275 return (ret);
276} /* bind_request */ 276} /* bind_request */
277 277
278#ifdef CONFIG_CARDBUS
279
280static struct pci_bus *pcmcia_lookup_bus(struct pcmcia_socket *s)
281{
282 if (!s || !(s->state & SOCKET_CARDBUS))
283 return NULL;
278 284
279extern struct pci_bus *pcmcia_lookup_bus(struct pcmcia_socket *s); 285 return s->cb_dev->subordinate;
286}
287#endif
280 288
281static int get_device_info(struct pcmcia_socket *s, bind_info_t *bind_info, int first) 289static int get_device_info(struct pcmcia_socket *s, bind_info_t *bind_info, int first)
282{ 290{