summaryrefslogtreecommitdiff
path: root/drivers/tty/serial
diff options
context:
space:
mode:
authorSamuel Holland <samuel.holland@sifive.com>2023-11-13 05:31:19 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-11-23 22:31:18 +0300
commit17fabec94d61c27d7efdc66301f1508dc223e291 (patch)
treea525afb17ffea6c9e28135a0a2a75468705ed614 /drivers/tty/serial
parentaa46b225ebbfa7ff96aef431879e8bbc159071e5 (diff)
downloadlinux-17fabec94d61c27d7efdc66301f1508dc223e291.tar.xz
serial: sifive: Declare PM operations as static
They are only used within this file, so they should have static linkage. Signed-off-by: Samuel Holland <samuel.holland@sifive.com> Link: https://lore.kernel.org/r/20231113023122.1185407-1-samuel.holland@sifive.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial')
-rw-r--r--drivers/tty/serial/sifive.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/sifive.c b/drivers/tty/serial/sifive.c
index 3541235a3ab6..a4cc569a78a2 100644
--- a/drivers/tty/serial/sifive.c
+++ b/drivers/tty/serial/sifive.c
@@ -1031,8 +1031,8 @@ static int sifive_serial_resume(struct device *dev)
return uart_resume_port(&sifive_serial_uart_driver, &ssp->port);
}
-DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend,
- sifive_serial_resume);
+static DEFINE_SIMPLE_DEV_PM_OPS(sifive_uart_pm_ops, sifive_serial_suspend,
+ sifive_serial_resume);
static const struct of_device_id sifive_serial_of_match[] = {
{ .compatible = "sifive,fu540-c000-uart0" },