aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/pcmcia/ds.c2
-rw-r--r--drivers/pcmcia/ds_internal.h2
-rw-r--r--drivers/pcmcia/rsrc_mgr.c4
-rw-r--r--include/pcmcia/ds.h6
4 files changed, 11 insertions, 3 deletions
diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c
index 4d11b35d4c37..211aa84353fc 100644
--- a/drivers/pcmcia/ds.c
+++ b/drivers/pcmcia/ds.c
@@ -835,9 +835,11 @@ static int pcmcia_bus_match(struct device * dev, struct device_driver * drv) {
835 struct pcmcia_driver * p_drv = to_pcmcia_drv(drv); 835 struct pcmcia_driver * p_drv = to_pcmcia_drv(drv);
836 struct pcmcia_device_id *did = p_drv->id_table; 836 struct pcmcia_device_id *did = p_drv->id_table;
837 837
838#ifdef CONFIG_PCMCIA_IOCTL
838 /* matching by cardmgr */ 839 /* matching by cardmgr */
839 if (p_dev->cardmgr == p_drv) 840 if (p_dev->cardmgr == p_drv)
840 return 1; 841 return 1;
842#endif
841 843
842 while (did && did->match_flags) { 844 while (did && did->match_flags) {
843 if (pcmcia_devmatch(p_dev, did)) 845 if (pcmcia_devmatch(p_dev, did))
diff --git a/drivers/pcmcia/ds_internal.h b/drivers/pcmcia/ds_internal.h
index d359bd25a51c..783d8617a05c 100644
--- a/drivers/pcmcia/ds_internal.h
+++ b/drivers/pcmcia/ds_internal.h
@@ -15,7 +15,7 @@ extern void handle_event(struct pcmcia_socket *s, event_t event);
15extern int handle_request(struct pcmcia_socket *s, event_t event); 15extern int handle_request(struct pcmcia_socket *s, event_t event);
16#else 16#else
17static inline void __init pcmcia_setup_ioctl(void) { return; } 17static inline void __init pcmcia_setup_ioctl(void) { return; }
18static inline void __init pcmcia_cleanup_ioctl(void) { return; } 18static inline void __exit pcmcia_cleanup_ioctl(void) { return; }
19static inline void handle_event(struct pcmcia_socket *s, event_t event) { return; } 19static inline void handle_event(struct pcmcia_socket *s, event_t event) { return; }
20static inline int handle_request(struct pcmcia_socket *s, event_t event) { return CS_SUCCESS; } 20static inline int handle_request(struct pcmcia_socket *s, event_t event) { return CS_SUCCESS; }
21#endif 21#endif
diff --git a/drivers/pcmcia/rsrc_mgr.c b/drivers/pcmcia/rsrc_mgr.c
index e5a33121de77..81dfc2cac2b4 100644
--- a/drivers/pcmcia/rsrc_mgr.c
+++ b/drivers/pcmcia/rsrc_mgr.c
@@ -21,6 +21,8 @@
21#include "cs_internal.h" 21#include "cs_internal.h"
22 22
23 23
24#ifdef CONFIG_PCMCIA_IOCTL
25
24#ifdef CONFIG_PCMCIA_PROBE 26#ifdef CONFIG_PCMCIA_PROBE
25 27
26static int adjust_irq(struct pcmcia_socket *s, adjust_t *adj) 28static int adjust_irq(struct pcmcia_socket *s, adjust_t *adj)
@@ -97,6 +99,8 @@ int pcmcia_adjust_resource_info(adjust_t *adj)
97} 99}
98EXPORT_SYMBOL(pcmcia_adjust_resource_info); 100EXPORT_SYMBOL(pcmcia_adjust_resource_info);
99 101
102#endif
103
100int pcmcia_validate_mem(struct pcmcia_socket *s) 104int pcmcia_validate_mem(struct pcmcia_socket *s)
101{ 105{
102 if (s->resource_ops->validate_mem) 106 if (s->resource_ops->validate_mem)
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h
index 8512cf9a1216..ce76ab587df6 100644
--- a/include/pcmcia/ds.h
+++ b/include/pcmcia/ds.h
@@ -183,10 +183,12 @@ struct pcmcia_device {
183 183
184 char * prod_id[4]; 184 char * prod_id[4];
185 185
186 struct device dev;
187
188#ifdef CONFIG_PCMCIA_IOCTL
186 /* device driver wanted by cardmgr */ 189 /* device driver wanted by cardmgr */
187 struct pcmcia_driver * cardmgr; 190 struct pcmcia_driver * cardmgr;
188 191#endif
189 struct device dev;
190}; 192};
191 193
192#define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) 194#define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev)