diff options
author | Magnus Damm <damm@opensource.se> | 2006-12-13 05:46:48 -0500 |
---|---|---|
committer | Dominik Brodowski <linux@dominikbrodowski.net> | 2009-11-28 12:02:49 -0500 |
commit | 16456ebabfec3f8f509fc18b45f256d066a1b360 (patch) | |
tree | 1c96b6bdf6b69558f6054629a169f9bfcbb0fe3d | |
parent | 868575d1e87ff2091800aea816972ddb46de60d5 (diff) |
pcmcia: Pass struct pcmcia_socket to pcmcia_get_mem_page()
No logic changes, just pass struct pcmcia_socket to pcmcia_get_mem_page()
[linux@dominikbrodowski.net: update to 2.6.31]
Signed-off-by: Magnus Damm <damm@opensource.se>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>
-rw-r--r-- | drivers/pcmcia/cs_internal.h | 2 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_ioctl.c | 2 | ||||
-rw-r--r-- | drivers/pcmcia/pcmcia_resource.c | 5 | ||||
-rw-r--r-- | include/pcmcia/ds.h | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/drivers/pcmcia/cs_internal.h b/drivers/pcmcia/cs_internal.h index 0a3ada970bf8..8e09a4998c84 100644 --- a/drivers/pcmcia/cs_internal.h +++ b/drivers/pcmcia/cs_internal.h | |||
@@ -227,6 +227,8 @@ extern void pcmcia_put_dev(struct pcmcia_device *p_dev); | |||
227 | 227 | ||
228 | struct pcmcia_device *pcmcia_device_add(struct pcmcia_socket *s, | 228 | struct pcmcia_device *pcmcia_device_add(struct pcmcia_socket *s, |
229 | unsigned int function); | 229 | unsigned int function); |
230 | int pcmcia_get_mem_page(struct pcmcia_socket *skt, window_handle_t win, | ||
231 | memreq_t *req); | ||
230 | 232 | ||
231 | /* pcmcia_ioctl.c */ | 233 | /* pcmcia_ioctl.c */ |
232 | extern void __init pcmcia_setup_ioctl(void); | 234 | extern void __init pcmcia_setup_ioctl(void); |
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c index 056fd131c89c..c829ead5cdb7 100644 --- a/drivers/pcmcia/pcmcia_ioctl.c +++ b/drivers/pcmcia/pcmcia_ioctl.c | |||
@@ -924,7 +924,7 @@ static int ds_ioctl(struct inode * inode, struct file * file, | |||
924 | buf->win_info.handle->index + 1, &buf->win_info.window); | 924 | buf->win_info.handle->index + 1, &buf->win_info.window); |
925 | break; | 925 | break; |
926 | case DS_GET_MEM_PAGE: | 926 | case DS_GET_MEM_PAGE: |
927 | ret = pcmcia_get_mem_page(buf->win_info.handle, | 927 | ret = pcmcia_get_mem_page(s, buf->win_info.handle, |
928 | &buf->win_info.map); | 928 | &buf->win_info.map); |
929 | break; | 929 | break; |
930 | case DS_REPLACE_CIS: | 930 | case DS_REPLACE_CIS: |
diff --git a/drivers/pcmcia/pcmcia_resource.c b/drivers/pcmcia/pcmcia_resource.c index b60952a3df93..a092749f79cb 100644 --- a/drivers/pcmcia/pcmcia_resource.c +++ b/drivers/pcmcia/pcmcia_resource.c | |||
@@ -223,8 +223,11 @@ EXPORT_SYMBOL(pcmcia_get_window); | |||
223 | * | 223 | * |
224 | * Change the card address of an already open memory window. | 224 | * Change the card address of an already open memory window. |
225 | */ | 225 | */ |
226 | int pcmcia_get_mem_page(window_handle_t win, memreq_t *req) | 226 | int pcmcia_get_mem_page(struct pcmcia_socket *skt, window_handle_t wh, |
227 | memreq_t *req) | ||
227 | { | 228 | { |
229 | window_handle_t win = wh; | ||
230 | |||
228 | if ((win == NULL) || (win->magic != WINDOW_MAGIC)) | 231 | if ((win == NULL) || (win->magic != WINDOW_MAGIC)) |
229 | return -EINVAL; | 232 | return -EINVAL; |
230 | req->Page = 0; | 233 | req->Page = 0; |
diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index f240bfa454f8..cbf5f05745f2 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h | |||
@@ -202,8 +202,6 @@ int pcmcia_request_configuration(struct pcmcia_device *p_dev, | |||
202 | int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, | 202 | int pcmcia_request_window(struct pcmcia_device **p_dev, win_req_t *req, |
203 | window_handle_t *wh); | 203 | window_handle_t *wh); |
204 | int pcmcia_release_window(struct pcmcia_device *p_dev, window_handle_t win); | 204 | int pcmcia_release_window(struct pcmcia_device *p_dev, window_handle_t win); |
205 | |||
206 | int pcmcia_get_mem_page(window_handle_t win, memreq_t *req); | ||
207 | int pcmcia_map_mem_page(struct pcmcia_device *p_dev, window_handle_t win, | 205 | int pcmcia_map_mem_page(struct pcmcia_device *p_dev, window_handle_t win, |
208 | memreq_t *req); | 206 | memreq_t *req); |
209 | 207 | ||