]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Remove dummy cb_config() and cb_release()
authorRussell King <rmk@arm.linux.org.uk>
Sun, 23 Feb 2003 02:47:42 +0000 (18:47 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 23 Feb 2003 02:47:42 +0000 (18:47 -0800)
cb_config() and cb_release() are just simple dummy functions that are
only used in the internals of the PCMCIA code.  We inline them where
used.

drivers/pcmcia/cardbus.c
drivers/pcmcia/cs.c
drivers/pcmcia/cs_internal.h

index adbecd75217490abaad9982f1297c64e8d8404c7..84bf602396fdd48e30028fba84ed4eb5bc99e734 100644 (file)
@@ -333,38 +333,6 @@ void cb_free(socket_info_t * s)
        }
 }
 
-/*=====================================================================
-
-    cb_config() has the job of allocating all system resources that
-    a Cardbus card requires.  Rather than using the CIS (which seems
-    to not always be present), it treats the card as an ordinary PCI
-    device, and probes the base address registers to determine each
-    function's IO and memory space needs.
-
-    It is called from the RequestIO card service.
-    
-======================================================================*/
-
-int cb_config(socket_info_t * s)
-{
-       return CS_SUCCESS;
-}
-
-/*======================================================================
-
-    cb_release() releases all the system resources (IO and memory
-    space, and interrupt) committed for a Cardbus card by a prior call
-    to cb_config().
-
-    It is called from the ReleaseIO() service.
-    
-======================================================================*/
-
-void cb_release(socket_info_t * s)
-{
-       DEBUG(0, "cs: cb_release(bus %d)\n", s->cap.cb_dev->subordinate->number);
-}
-
 /*=====================================================================
 
     cb_enable() has the job of configuring a socket for a Cardbus
index 16c49060595cb028740f60bf137e1e566f8133d8..88fe64a0ac9d15c4836797015d9398e36fdda405 100644 (file)
@@ -1569,7 +1569,6 @@ int pcmcia_release_io(client_handle_t handle, io_req_t *req)
     
 #ifdef CONFIG_CARDBUS
     if (handle->state & CLIENT_CARDBUS) {
-       cb_release(s);
        return CS_SUCCESS;
     }
 #endif
@@ -1811,10 +1810,8 @@ int pcmcia_request_io(client_handle_t handle, io_req_t *req)
 
     if (handle->state & CLIENT_CARDBUS) {
 #ifdef CONFIG_CARDBUS
-       int ret = cb_config(s);
-       if (ret == CS_SUCCESS)
-           handle->state |= CLIENT_IO_REQ;
-       return ret;
+       handle->state |= CLIENT_IO_REQ;
+       return CS_SUCCESS;
 #else
        return CS_UNSUPPORTED_FUNCTION;
 #endif
index 75731296aac307a0984dacd0dca77426ef2d19b7..55bf1220e36d29bdfd1a9426d8d62413b8e4fa9e 100644 (file)
@@ -198,8 +198,6 @@ typedef struct socket_info_t {
 /* In cardbus.c */
 int cb_alloc(socket_info_t *s);
 void cb_free(socket_info_t *s);
-int cb_config(socket_info_t *s);
-void cb_release(socket_info_t *s);
 void cb_enable(socket_info_t *s);
 void cb_disable(socket_info_t *s);
 int read_cb_mem(socket_info_t *s, u_char fn, int space,