]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
[PATCH] USB: small cleanups
authorAdrian Bunk <bunk@stusta.de>
Sun, 20 Nov 2005 22:56:11 +0000 (23:56 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 4 Jan 2006 21:48:34 +0000 (13:48 -0800)
This patch contains the following cleanups:
- make needlessly global functions static
- every file should #include the headers containing the prototypes for
  it's global functions

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/atm/usbatm.c
drivers/usb/serial/io_ti.c

index 2e6593e6c1bd66223ef57293a013ae8be5962395..9baa6296fc95de6992a7795c948e5cf8b190f8c5 100644 (file)
@@ -646,14 +646,14 @@ static void usbatm_destroy_instance(struct kref *kref)
        kfree(instance);
 }
 
-void usbatm_get_instance(struct usbatm_data *instance)
+static void usbatm_get_instance(struct usbatm_data *instance)
 {
        dbg("%s", __func__);
 
        kref_get(&instance->refcount);
 }
 
-void usbatm_put_instance(struct usbatm_data *instance)
+static void usbatm_put_instance(struct usbatm_data *instance)
 {
        dbg("%s", __func__);
 
index 22ad1a5a8f9ebc9461080865faf01c09aaf01e53..2edf9cabad201d739e1209130af7c4df60e6e2dc 100644 (file)
@@ -2843,7 +2843,7 @@ static struct edge_buf *edge_buf_alloc(unsigned int size)
  * Free the buffer and all associated memory.
  */
 
-void edge_buf_free(struct edge_buf *eb)
+static void edge_buf_free(struct edge_buf *eb)
 {
        if (eb) {
                kfree(eb->buf_buf);