In message: [PATCH] pinctrl: s32cc: add CONFIG_PM_SLEEP check for PM operations on 04/12/2024 Zhantao Tang wrote:
> Since there is lack of CONFIG_PM_SLEEP check when s32_pinctrl_pm_ops defined, > the compilation will fail when CONFIG_PM_SLEEP configure is not enabled. > > So add check line to make it more reasonable and buildable. > > Signed-off-by: Zhantao Tang <[email protected]> > --- > Hi Bruce, > > Would you please help to merge this patch to: > v6.6/standard/nxp-sdk-6.6/nxp-s32g > v6.6/standard/preempt-rt/nxp-sdk-6.6/nxp-s32g merged. Bruce > branches? > > Thanks, > Zhantao > --- > drivers/pinctrl/nxp/pinctrl-s32cc.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/drivers/pinctrl/nxp/pinctrl-s32cc.c > b/drivers/pinctrl/nxp/pinctrl-s32cc.c > index 0c4e1cf838a2e..aa6d1bd6869d4 100644 > --- a/drivers/pinctrl/nxp/pinctrl-s32cc.c > +++ b/drivers/pinctrl/nxp/pinctrl-s32cc.c > @@ -1001,15 +1001,19 @@ static int s32_pinctrl_probe(struct platform_device > *pdev) > return 0; > } > > +#ifdef CONFIG_PM_SLEEP > static const struct dev_pm_ops s32_pinctrl_pm_ops = { > LATE_SYSTEM_SLEEP_PM_OPS(s32_pinctrl_suspend, s32_pinctrl_resume) > }; > +#endif > > static struct platform_driver s32cc_pinctrl_driver = { > .driver = { > .name = "s32cc-siul2-pinctrl", > .of_match_table = s32_pinctrl_of_match, > +#ifdef CONFIG_PM_SLEEP > .pm = pm_sleep_ptr(&s32_pinctrl_pm_ops), > +#endif > .suppress_bind_attrs = true, > }, > .probe = s32_pinctrl_probe, > -- > 2.34.1 >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#14637): https://lists.yoctoproject.org/g/linux-yocto/message/14637 Mute This Topic: https://lists.yoctoproject.org/mt/109920017/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
