]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
serial: 8250_bcm2835aux: Switch to DEFINE_SIMPLE_DEV_PM_OPS()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 13 Aug 2024 08:19:04 +0000 (11:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Aug 2024 06:22:50 +0000 (08:22 +0200)
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>
drivers/tty/serial/8250/8250_bcm2835aux.c

index 36e2bb34d82bd9aaac7559df211eb2d5ad4c18f2..829abef2564d26599e5c5b6a922e56610553581b 100644 (file)
@@ -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 = {