tty: serial: fsl_lpuart: Use pm_ptr() to avoid need to make pm __maybe_unused
authorSherry Sun <sherry.sun@nxp.com>
Thu, 10 Nov 2022 11:38:59 +0000 (19:38 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 22 Nov 2022 16:56:15 +0000 (17:56 +0100)
commit22cf92bb3908e1bbc22b03371e9e67e7bd455e0f
treea15732773c80f2077821263d98a02a6808fecf5f
parent43543e6f539b3e646348c253059f75e27d63c94d
tty: serial: fsl_lpuart: Use pm_ptr() to avoid need to make pm __maybe_unused

Use pm_ptr() to remove the need to mark the pm functions as
__maybe_unused when the kernel is built without CONFIG_PM support.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Link: https://lore.kernel.org/r/20221110113859.8485-4-sherry.sun@nxp.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c