[PATCH 1/9] pcmcia: allow for four multifunction subdevices
Dominik Brodowski
linux at dominikbrodowski.net
Mon Dec 4 21:04:49 EST 2006
From: Dominik Brodowski <linux at dominikbrodowski.net>
Date: Mon, 27 Nov 2006 21:03:48 -0500
Subject: [PATCH] pcmcia: allow for four multifunction subdevices
Some Elan serial cards allow for four (independent) multifunction
subdevices. Teach the PCMCIA core to deal with such devices.
Signed-off-by: Dominik Brodowski <linux at dominikbrodowski.net>
---
drivers/pcmcia/ds.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index da7ceb5..6572b38 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -529,8 +529,8 @@ struct pcmcia_device * pcmcia_device_add
mutex_lock(&device_add_lock);
- /* max of 2 devices per card */
- if (s->device_count == 2)
+ /* max of 4 devices per card */
+ if (s->device_count == 4)
goto err_put;
p_dev = kzalloc(sizeof(struct pcmcia_device), GFP_KERNEL);
--
1.4.4
More information about the linux-pcmcia
mailing list