[PATCH] pcmcia: access config_t using pointer instead of array
Access the PCMCIA config_t struct (one per device function) using a pointer in struct pcmcia_device, instead of looking them up in an array. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
This commit is contained in:
@ -399,6 +399,7 @@ static int pcmcia_device_probe(struct device * dev)
|
||||
goto put_module;
|
||||
}
|
||||
}
|
||||
p_dev->function_config = &s->config[p_dev->func];
|
||||
|
||||
ret = p_drv->probe(p_dev);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user