summaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/ds.c
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2006-01-10 20:41:27 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2006-03-31 17:01:43 +0200
commitdbb22f0d65ccc2e9dfeb4c420942f2757a80f8d2 (patch)
tree242382a959af9e8ac93afbc187fc74db9494d7c9 /drivers/pcmcia/ds.c
parent1ae9c7d8198ae973da3b927e28d63f294ffa11e3 (diff)
downloadop-kernel-dev-dbb22f0d65ccc2e9dfeb4c420942f2757a80f8d2.zip
op-kernel-dev-dbb22f0d65ccc2e9dfeb4c420942f2757a80f8d2.tar.gz
[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>
Diffstat (limited to 'drivers/pcmcia/ds.c')
-rw-r--r--drivers/pcmcia/ds.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index a4333a8..5166f00 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -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)
OpenPOWER on IntegriCloud