projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da2ab12
)
pinctrl: spear: simplify the return expression of spear310_pinctrl_probe
author
Liu Shixin
<liushixin2@huawei.com>
Mon, 21 Sep 2020 08:24:48 +0000
(16:24 +0800)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 29 Sep 2020 13:25:26 +0000
(15:25 +0200)
Simplify the return expression.
Signed-off-by: Liu Shixin <liushixin2@huawei.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link:
https://lore.kernel.org/r/20200921082448.2591929-1-liushixin2@huawei.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/spear/pinctrl-spear310.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/spear/pinctrl-spear310.c
b/drivers/pinctrl/spear/pinctrl-spear310.c
index 393b2b97d527421b6d75d57602edf3da675e0df1..9d9facc4a6e445bf5e2337653d4e6df12ecce99e 100644
(file)
--- a/
drivers/pinctrl/spear/pinctrl-spear310.c
+++ b/
drivers/pinctrl/spear/pinctrl-spear310.c
@@
-379,8
+379,6
@@
static const struct of_device_id spear310_pinctrl_of_match[] = {
static int spear310_pinctrl_probe(struct platform_device *pdev)
{
- int ret;
-
spear3xx_machdata.groups = spear310_pingroups;
spear3xx_machdata.ngroups = ARRAY_SIZE(spear310_pingroups);
spear3xx_machdata.functions = spear310_functions;
@@
-392,11
+390,7
@@
static int spear310_pinctrl_probe(struct platform_device *pdev)
spear3xx_machdata.modes_supported = false;
- ret = spear_pinctrl_probe(pdev, &spear3xx_machdata);
- if (ret)
- return ret;
-
- return 0;
+ return spear_pinctrl_probe(pdev, &spear3xx_machdata);
}
static struct platform_driver spear310_pinctrl_driver = {