]> git.ipfire.org Git - thirdparty/kernel/stable.git/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)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 21 Feb 2024 15:34:33 +0000 (16:34 +0100)
commita6f06b909fee72c679c565adfa7f080f9595e336
tree100b92759905eefe839ca116f19c11a635a1f770
parent254203f9a94cf8f8f406e241a11f38b8e4701d91
pinctrl: renesas: Allow the compiler to optimize away sh_pfc_pm

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
drivers/pinctrl/renesas/core.c