]> git.itanic.dy.fi Git - linux-stable/commit
pinctrl: renesas: Allow the compiler to optimize away sh_pfc_pm
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 21 Feb 2024 11:13:59 +0000 (12:13 +0100)
committerSasha Levin <sashal@kernel.org>
Tue, 26 Mar 2024 22:17:09 +0000 (18:17 -0400)
commita02e9bd417d2c2027004630e0b8d649813ea9ac1
tree322502c4674c1b5525ba951650a2fd96f1385551
parent28a94271bd50e4cf498df0381f776f8ea40a289e
pinctrl: renesas: Allow the compiler to optimize away sh_pfc_pm

[ Upstream commit a6f06b909fee72c679c565adfa7f080f9595e336 ]

The conversion to DEFINE_NOIRQ_DEV_PM_OPS() lost the ability of the
compiler to optimize away the struct dev_pm_ops object when it is not
needed.

Fix this by replacing the use of pm_sleep_ptr() by a custom wrapper.

Fixes: 727eb02eb753375e ("pinctrl: renesas: Switch to use DEFINE_NOIRQ_DEV_PM_OPS() helper")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/6238a78e32fa21f0c795406b6cba7bce7af92577.1708513940.git.geert+renesas@glider.be
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/renesas/core.c