diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-08-13 10:19:04 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-08-14 08:22:50 +0200 |
commit | 98e24a58b597d888f604f0de43fcf5eb5eb204b4 (patch) | |
tree | ccef9b350b27586f1f9bd649f8d36deac9f14cc2 /drivers/tty | |
parent | serial: 8250_platform: Unify comment style (diff) | |
download | linux-98e24a58b597d888f604f0de43fcf5eb5eb204b4.tar.xz linux-98e24a58b597d888f604f0de43fcf5eb5eb204b4.zip |
serial: 8250_bcm2835aux: Switch to DEFINE_SIMPLE_DEV_PM_OPS()
The definition of the PM operations opens code the existing macro,
replace it with the DEFINE_SIMPLE_DEV_PM_OPS() for setting the driver's
PM routines.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240813081954.1408792-1-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_bcm2835aux.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/8250/8250_bcm2835aux.c b/drivers/tty/serial/8250/8250_bcm2835aux.c index 36e2bb34d82b..829abef2564d 100644 --- a/drivers/tty/serial/8250/8250_bcm2835aux.c +++ b/drivers/tty/serial/8250/8250_bcm2835aux.c @@ -245,9 +245,7 @@ static int bcm2835aux_resume(struct device *dev) return 0; } -static const struct dev_pm_ops bcm2835aux_dev_pm_ops = { - SYSTEM_SLEEP_PM_OPS(bcm2835aux_suspend, bcm2835aux_resume) -}; +static DEFINE_SIMPLE_DEV_PM_OPS(bcm2835aux_dev_pm_ops, bcm2835aux_suspend, bcm2835aux_resume); static struct platform_driver bcm2835aux_serial_driver = { .driver = { |