Commit 98e24a58 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Greg Kroah-Hartman

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240813081954.1408792-1-andriy.shevchenko@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 77748913
......@@ -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 = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment