]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Staging: fwserial: Declare fwtty_port_put as static
authorShraddha Barke <shraddha.6596@gmail.com>
Thu, 5 Nov 2015 14:05:36 +0000 (19:35 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
Declare the function fwtty_port_put as static since it is used
only in this particular file. Also remove the corresponding
declaration from header file.

Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fwserial/fwserial.c
drivers/staging/fwserial/fwserial.h

index b3ea4bb54e2c7a80f25f86f5e01008712d22142a..b676c486cb1895e9963fb8b309e033a2130e3019 100644 (file)
@@ -893,11 +893,10 @@ static void fwserial_destroy(struct kref *kref)
        kfree(serial);
 }
 
-void fwtty_port_put(struct fwtty_port *port)
+static void fwtty_port_put(struct fwtty_port *port)
 {
        kref_put(&port->serial->kref, fwserial_destroy);
 }
-EXPORT_SYMBOL(fwtty_port_put);
 
 static void fwtty_port_dtr_rts(struct tty_port *tty_port, int on)
 {
index 8d791ae79cd61dbed040a0ae4382b83e205f584f..e13fe33a689741d1e4dd0338c8f4a82131be7c9a 100644 (file)
@@ -342,8 +342,6 @@ static const char loop_dev_name[] = "fwloop";
 extern struct tty_driver *fwtty_driver;
 
 struct fwtty_port *fwtty_port_get(unsigned index);
-void fwtty_port_put(struct fwtty_port *port);
-
 /*
  * Returns the max send async payload size in bytes based on the unit device
  * link speed. Self-limiting asynchronous bandwidth (via reducing the payload)