summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-02-05 16:12:34 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-09 13:54:49 +0100
commit80cd94e759fd3d7b9fb1a95fa41e2c23e557a525 (patch)
treec516ba91f646f9f100e0be9ccb23fcb162a7eedf /drivers/tty
parent36523b6830fa468ae9e0335601aed475480b7dd3 (diff)
downloadlinux-80cd94e759fd3d7b9fb1a95fa41e2c23e557a525.tar.bz2
serial: 8250_pci: make pciserial_detach_ports() static
Fixes the following sparse warning: drivers/tty/serial/8250/8250_pci.c:3916:6: warning: symbol 'pciserial_detach_ports' was not declared. Should it be static? Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c
index 0b63109d8750..2c83fd54b36c 100644
--- a/drivers/tty/serial/8250/8250_pci.c
+++ b/drivers/tty/serial/8250/8250_pci.c
@@ -3695,7 +3695,7 @@ err_out:
}
EXPORT_SYMBOL_GPL(pciserial_init_ports);
-void pciserial_detach_ports(struct serial_private *priv)
+static void pciserial_detach_ports(struct serial_private *priv)
{
struct pci_serial_quirk *quirk;
int i;