summaryrefslogtreecommitdiffstats
path: root/include/pcmcia/ds.h
diff options
context:
space:
mode:
authorDominik Brodowski <linux@dominikbrodowski.net>2006-01-15 01:14:31 +0100
committerDominik Brodowski <linux@dominikbrodowski.net>2006-03-31 17:02:39 +0200
commit0e0fad8f71a8a23fad223b7d72b4ba06d57f764f (patch)
treefd73294166cb419200e6439be9dd7841a2bcf554 /include/pcmcia/ds.h
parent1540eec5e5549b2e41704ce77f3f4ba880d2434c (diff)
[PATCH] pcmcia: size reduction if ioctl isn't compiled
If the kernel is configured to not include the deprecated PCMCIA ioctl, some code doesn't need to be built. Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
Diffstat (limited to 'include/pcmcia/ds.h')
-rw-r--r--include/pcmcia/ds.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h
index 8512cf9a121..ce76ab587df 100644
--- a/include/pcmcia/ds.h
+++ b/include/pcmcia/ds.h
@@ -183,10 +183,12 @@ struct pcmcia_device {
char * prod_id[4];
+ struct device dev;
+
+#ifdef CONFIG_PCMCIA_IOCTL
/* device driver wanted by cardmgr */
struct pcmcia_driver * cardmgr;
-
- struct device dev;
+#endif
};
#define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev)