Skip to content

Commit 98e24a5

Browse files
andy-shevgregkh
authored andcommitted
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>
1 parent 7774891 commit 98e24a5

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

drivers/tty/serial/8250/8250_bcm2835aux.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,7 @@ static int bcm2835aux_resume(struct device *dev)
245245
return 0;
246246
}
247247

248-
static const struct dev_pm_ops bcm2835aux_dev_pm_ops = {
249-
SYSTEM_SLEEP_PM_OPS(bcm2835aux_suspend, bcm2835aux_resume)
250-
};
248+
static DEFINE_SIMPLE_DEV_PM_OPS(bcm2835aux_dev_pm_ops, bcm2835aux_suspend, bcm2835aux_resume);
251249

252250
static struct platform_driver bcm2835aux_serial_driver = {
253251
.driver = {

0 commit comments

Comments
 (0)