summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/pinctrl/devicetree.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/pinctrl/devicetree.c')
-rw-r--r--kernel/drivers/pinctrl/devicetree.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/kernel/drivers/pinctrl/devicetree.c b/kernel/drivers/pinctrl/devicetree.c
index 0bbf7d71b..fe04e748d 100644
--- a/kernel/drivers/pinctrl/devicetree.c
+++ b/kernel/drivers/pinctrl/devicetree.c
@@ -97,13 +97,7 @@ static int dt_remember_or_free_map(struct pinctrl *p, const char *statename,
struct pinctrl_dev *of_pinctrl_get(struct device_node *np)
{
- struct pinctrl_dev *pctldev;
-
- pctldev = get_pinctrl_dev_from_of_node(np);
- if (!pctldev)
- return NULL;
-
- return pctldev;
+ return get_pinctrl_dev_from_of_node(np);
}
static int dt_to_map_one_config(struct pinctrl *p, const char *statename,