tty: serial: atmel: stop using legacy pm ops
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Thu, 16 Jun 2022 14:00:21 +0000 (17:00 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jun 2022 12:39:51 +0000 (14:39 +0200)
commitb50058b82e0a0ea2cb11889c261cb7d587b62e1c
treed5f94655bdb512cf33a06420236f9e6ea0d2b56a
parent1fce2867c7cb147978b116953aa033880654089b
tty: serial: atmel: stop using legacy pm ops

Stop using legacy PM ops and switch using dev_pm_ops. Along with
it #ifdef CONFIG_PM are removed and __maybe_unused and pm_ptr() used
instead. Coding style recommends (at chapter Conditional Compilation)
to avoid using preprocessor conditional and use __maybe_unused
instead.

Acked-by: Richard Genoud <richard.genoud@gmail.com>
Signed-off-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20220616140024.2081238-2-claudiu.beznea@microchip.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/atmel_serial.c