spi: pxa2xx: Switch from PM ifdeffery to pm_ptr()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 20 Oct 2022 19:45:00 +0000 (22:45 +0300)
committerMark Brown <broonie@kernel.org>
Fri, 21 Oct 2022 12:17:04 +0000 (13:17 +0100)
commit6c3c438c085b2cd79b3291b67f8f7ece62371947
treed83448192ceddb43227df7c4b3d33c3138101e0b
parent8fc8250a1586008cceaadd6f4df9db23643d4b3e
spi: pxa2xx: Switch from PM ifdeffery to pm_ptr()

Cleaning up the driver to use pm_ptr() macro instead of ifdeffery
that makes it simpler and allows the compiler to remove those functions
if built without CONFIG_PM and CONFIG_PM_SLEEP support.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20221020194500.10225-6-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-pxa2xx.c