[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20231113023122.1185407-1-samuel.holland@sifive.com>
Date: Sun, 12 Nov 2023 18:31:19 -0800
From: Samuel Holland <samuel.holland@...ive.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Cc: Samuel Holland <samuel.holland@...ive.com>,
Jiri Slaby <jirislaby@...nel.org>,
John Ogness <john.ogness@...utronix.de>,
Nick Hu <nick.hu@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Ruan Jinjie <ruanjinjie@...wei.com>,
Thomas Gleixner <tglx@...utronix.de>,
Yangtao Li <frank.li@...o.com>, linux-kernel@...r.kernel.org,
linux-riscv@...ts.infradead.org, linux-serial@...r.kernel.org
Subject: [PATCH] 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@...ive.com>
---
drivers/tty/serial/sifive.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/serial/sifive.c b/drivers/tty/serial/sifive.c
index b296e57a9dee..3babc6c3a527 100644
--- a/drivers/tty/serial/sifive.c
+++ b/drivers/tty/serial/sifive.c
@@ -1033,8 +1033,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" },
--
2.42.0
Powered by blists - more mailing lists