summaryrefslogtreecommitdiff
path: root/drivers/pinctrl/nxp/pinctrl-s32g2.c
diff options
context:
space:
mode:
authorChester Lin <clin@suse.com>2023-03-27 09:27:50 +0300
committerLinus Walleij <linus.walleij@linaro.org>2023-03-28 00:34:24 +0300
commit08b71a71f315bbb25608abc924ac209d1e079683 (patch)
tree4082f29fe5ba70f8c128fd2c530222beb48eaf2b /drivers/pinctrl/nxp/pinctrl-s32g2.c
parent617385bb273e1b15958e8bb98df8c4c234ede5b8 (diff)
downloadlinux-08b71a71f315bbb25608abc924ac209d1e079683.tar.xz
pinctrl: s32: refine error/return/config checks and simplify driver codes
Improve error/return code handlings and config checks in order to have better reliability and simplify driver codes such as removing/changing improper macros, blanks, print formats and helper calls. Signed-off-by: Chester Lin <clin@suse.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20230327062754.3326-2-clin@suse.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/nxp/pinctrl-s32g2.c')
-rw-r--r--drivers/pinctrl/nxp/pinctrl-s32g2.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pinctrl/nxp/pinctrl-s32g2.c b/drivers/pinctrl/nxp/pinctrl-s32g2.c
index 5028f4adc389..d9f3ff6794ea 100644
--- a/drivers/pinctrl/nxp/pinctrl-s32g2.c
+++ b/drivers/pinctrl/nxp/pinctrl-s32g2.c
@@ -757,14 +757,12 @@ static const struct dev_pm_ops s32g_pinctrl_pm_ops = {
static struct platform_driver s32g_pinctrl_driver = {
.driver = {
.name = "s32g-siul2-pinctrl",
- .owner = THIS_MODULE,
.of_match_table = s32_pinctrl_of_match,
- .pm = &s32g_pinctrl_pm_ops,
+ .pm = pm_sleep_ptr(&s32g_pinctrl_pm_ops),
.suppress_bind_attrs = true,
},
.probe = s32g_pinctrl_probe,
};
-
builtin_platform_driver(s32g_pinctrl_driver);
MODULE_AUTHOR("Matthew Nunez <matthew.nunez@nxp.com>");