mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[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 <[email protected]>
This commit is contained in:
parent
1540eec5e5
commit
0e0fad8f71
4 changed files with 11 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue