Commit 961a0cda authored by Dominik Brodowski's avatar Dominik Brodowski Committed by Russell King

[PCMCIA] 02-adjust_resource_info.diff

pcmcia_adjust_resource_info is only called from ds.c and doesn't
need to know about a valid handle.
parent 43677d77
...@@ -2098,7 +2098,6 @@ EXPORT_SYMBOL(pcmcia_set_event_mask); ...@@ -2098,7 +2098,6 @@ EXPORT_SYMBOL(pcmcia_set_event_mask);
======================================================================*/ ======================================================================*/
/* in alpha order */ /* in alpha order */
EXPORT_SYMBOL(pcmcia_access_configuration_register); EXPORT_SYMBOL(pcmcia_access_configuration_register);
EXPORT_SYMBOL(pcmcia_adjust_resource_info);
EXPORT_SYMBOL(pcmcia_deregister_client); EXPORT_SYMBOL(pcmcia_deregister_client);
EXPORT_SYMBOL(pcmcia_eject_card); EXPORT_SYMBOL(pcmcia_eject_card);
EXPORT_SYMBOL(pcmcia_get_card_services_info); EXPORT_SYMBOL(pcmcia_get_card_services_info);
......
...@@ -884,6 +884,8 @@ static u_int ds_poll(struct file *file, poll_table *wait) ...@@ -884,6 +884,8 @@ static u_int ds_poll(struct file *file, poll_table *wait)
/*====================================================================*/ /*====================================================================*/
extern int pcmcia_adjust_resource_info(adjust_t *adj);
static int ds_ioctl(struct inode * inode, struct file * file, static int ds_ioctl(struct inode * inode, struct file * file,
u_int cmd, u_long arg) u_int cmd, u_long arg)
{ {
...@@ -932,7 +934,7 @@ static int ds_ioctl(struct inode * inode, struct file * file, ...@@ -932,7 +934,7 @@ static int ds_ioctl(struct inode * inode, struct file * file,
switch (cmd) { switch (cmd) {
case DS_ADJUST_RESOURCE_INFO: case DS_ADJUST_RESOURCE_INFO:
ret = pcmcia_adjust_resource_info(s->handle, &buf.adjust); ret = pcmcia_adjust_resource_info(&buf.adjust);
break; break;
case DS_GET_CARD_SERVICES_INFO: case DS_GET_CARD_SERVICES_INFO:
ret = pcmcia_get_card_services_info(&buf.servinfo); ret = pcmcia_get_card_services_info(&buf.servinfo);
......
...@@ -973,11 +973,8 @@ static int adjust_irq(adjust_t *adj) ...@@ -973,11 +973,8 @@ static int adjust_irq(adjust_t *adj)
/*====================================================================*/ /*====================================================================*/
int pcmcia_adjust_resource_info(client_handle_t handle, adjust_t *adj) int pcmcia_adjust_resource_info(adjust_t *adj)
{ {
if (CHECK_HANDLE(handle))
return CS_BAD_HANDLE;
switch (adj->Resource) { switch (adj->Resource) {
case RES_MEMORY_RANGE: case RES_MEMORY_RANGE:
return adjust_memory(adj); return adjust_memory(adj);
...@@ -991,6 +988,7 @@ int pcmcia_adjust_resource_info(client_handle_t handle, adjust_t *adj) ...@@ -991,6 +988,7 @@ int pcmcia_adjust_resource_info(client_handle_t handle, adjust_t *adj)
} }
return CS_UNSUPPORTED_FUNCTION; return CS_UNSUPPORTED_FUNCTION;
} }
EXPORT_SYMBOL(pcmcia_adjust_resource_info);
/*====================================================================*/ /*====================================================================*/
......
...@@ -454,9 +454,6 @@ int pcmcia_modify_window(window_handle_t win, modwin_t *req); ...@@ -454,9 +454,6 @@ int pcmcia_modify_window(window_handle_t win, modwin_t *req);
int pcmcia_set_event_mask(client_handle_t handle, eventmask_t *mask); int pcmcia_set_event_mask(client_handle_t handle, eventmask_t *mask);
#endif #endif
/* rsrc_mgr.c */
int pcmcia_adjust_resource_info(client_handle_t handle, adjust_t *adj);
#endif /* __KERNEL__ */ #endif /* __KERNEL__ */
#endif /* _LINUX_CS_H */ #endif /* _LINUX_CS_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment