Skip to content

Commit 40eeb11

Browse files
author
Linus Walleij
committed
Revert "pinctrl: consumer: use correct retval for placeholder functions"
This reverts commit 5a7d2ef. As per discussion on the mailing list, this is not the right thing to do. NULL cookies are valid in the stubs. Reported-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent c517d83 commit 40eeb11

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎include/linux/pinctrl/consumer.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ static inline int pinctrl_gpio_direction_output(unsigned gpio)
8282

8383
static inline struct pinctrl * __must_check pinctrl_get(struct device *dev)
8484
{
85-
return ERR_PTR(-ENOSYS);
85+
return NULL;
8686
}
8787

8888
static inline void pinctrl_put(struct pinctrl *p)
@@ -93,7 +93,7 @@ static inline struct pinctrl_state * __must_check pinctrl_lookup_state(
9393
struct pinctrl *p,
9494
const char *name)
9595
{
96-
return ERR_PTR(-ENOSYS);
96+
return NULL;
9797
}
9898

9999
static inline int pinctrl_select_state(struct pinctrl *p,
@@ -104,7 +104,7 @@ static inline int pinctrl_select_state(struct pinctrl *p,
104104

105105
static inline struct pinctrl * __must_check devm_pinctrl_get(struct device *dev)
106106
{
107-
return ERR_PTR(-ENOSYS);
107+
return NULL;
108108
}
109109

110110
static inline void devm_pinctrl_put(struct pinctrl *p)

0 commit comments

Comments
 (0)