mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-23 03:38:12 +07:00
[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@dominikbrodowski.net>
This commit is contained in:
parent
9374074f9b
commit
6cf5be5112
@ -529,8 +529,8 @@ struct pcmcia_device * pcmcia_device_add(struct pcmcia_socket *s, unsigned int f
|
|||||||
|
|
||||||
mutex_lock(&device_add_lock);
|
mutex_lock(&device_add_lock);
|
||||||
|
|
||||||
/* max of 2 devices per card */
|
/* max of 4 devices per card */
|
||||||
if (s->device_count == 2)
|
if (s->device_count == 4)
|
||||||
goto err_put;
|
goto err_put;
|
||||||
|
|
||||||
p_dev = kzalloc(sizeof(struct pcmcia_device), GFP_KERNEL);
|
p_dev = kzalloc(sizeof(struct pcmcia_device), GFP_KERNEL);
|
||||||
|
Loading…
Reference in New Issue
Block a user