diff options
Diffstat (limited to 'include/pcmcia')
-rw-r--r-- | include/pcmcia/bulkmem.h | 4 | ||||
-rw-r--r-- | include/pcmcia/ds.h | 7 | ||||
-rw-r--r-- | include/pcmcia/ss.h | 2 |
3 files changed, 4 insertions, 9 deletions
diff --git a/include/pcmcia/bulkmem.h b/include/pcmcia/bulkmem.h index b53b78d497ba..6bc7472293b2 100644 --- a/include/pcmcia/bulkmem.h +++ b/include/pcmcia/bulkmem.h | |||
@@ -35,7 +35,7 @@ typedef struct region_info_t { | |||
35 | #define REGION_BAR_MASK 0xe000 | 35 | #define REGION_BAR_MASK 0xe000 |
36 | #define REGION_BAR_SHIFT 13 | 36 | #define REGION_BAR_SHIFT 13 |
37 | 37 | ||
38 | int pcmcia_get_first_region(client_handle_t handle, region_info_t *rgn); | 38 | int pcmcia_get_first_region(struct pcmcia_device *handle, region_info_t *rgn); |
39 | int pcmcia_get_next_region(client_handle_t handle, region_info_t *rgn); | 39 | int pcmcia_get_next_region(struct pcmcia_device *handle, region_info_t *rgn); |
40 | 40 | ||
41 | #endif /* _LINUX_BULKMEM_H */ | 41 | #endif /* _LINUX_BULKMEM_H */ |
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 61f7d2dec199..557d8aea1a86 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -155,7 +155,6 @@ struct pcmcia_device { | |||
155 | dev_node_t *dev_node; | 155 | dev_node_t *dev_node; |
156 | u_int state; | 156 | u_int state; |
157 | u_int open; | 157 | u_int open; |
158 | struct pcmcia_device *handle; | ||
159 | io_req_t io; | 158 | io_req_t io; |
160 | irq_req_t irq; | 159 | irq_req_t irq; |
161 | config_req_t conf; | 160 | config_req_t conf; |
@@ -185,18 +184,14 @@ struct pcmcia_device { | |||
185 | struct pcmcia_driver * cardmgr; | 184 | struct pcmcia_driver * cardmgr; |
186 | #endif | 185 | #endif |
187 | }; | 186 | }; |
188 | typedef struct pcmcia_device dev_link_t; | ||
189 | 187 | ||
190 | #define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) | 188 | #define to_pcmcia_dev(n) container_of(n, struct pcmcia_device, dev) |
191 | #define to_pcmcia_drv(n) container_of(n, struct pcmcia_driver, drv) | 189 | #define to_pcmcia_drv(n) container_of(n, struct pcmcia_driver, drv) |
192 | 190 | ||
193 | #define handle_to_pdev(handle) (handle) | ||
194 | #define handle_to_dev(handle) (handle->dev) | 191 | #define handle_to_dev(handle) (handle->dev) |
195 | 192 | ||
196 | #define dev_to_instance(dev) (dev) | ||
197 | |||
198 | /* error reporting */ | 193 | /* error reporting */ |
199 | void cs_error(client_handle_t handle, int func, int ret); | 194 | void cs_error(struct pcmcia_device *handle, int func, int ret); |
200 | 195 | ||
201 | #endif /* __KERNEL__ */ | 196 | #endif /* __KERNEL__ */ |
202 | #endif /* _LINUX_DS_H */ | 197 | #endif /* _LINUX_DS_H */ |
diff --git a/include/pcmcia/ss.h b/include/pcmcia/ss.h index d0a15125f241..35e469dea6ec 100644 --- a/include/pcmcia/ss.h +++ b/include/pcmcia/ss.h | |||
@@ -161,7 +161,7 @@ typedef struct io_window_t { | |||
161 | typedef struct window_t { | 161 | typedef struct window_t { |
162 | u_short magic; | 162 | u_short magic; |
163 | u_short index; | 163 | u_short index; |
164 | client_handle_t handle; | 164 | struct pcmcia_device *handle; |
165 | struct pcmcia_socket *sock; | 165 | struct pcmcia_socket *sock; |
166 | pccard_mem_map ctl; | 166 | pccard_mem_map ctl; |
167 | } window_t; | 167 | } window_t; |