This reverts commit 5a7d2efdd93f6c4bb6cd3d5df3d2f5611c9b87ac. As per discussion on the mailing list, this is not the right thing to do. NULL cookies are valid in the stubs.
Showing the changes to include/linux/pinctrl (1 of 1 file). Show all
Unified · Split
| @@ -82,7 +82,7 @@ static inline int pinctrl_gpio_direction_output(unsigned gpio) · 81 unmodified lines | ||
| 82 | 82 | |
| 83 | 83 | static inline struct pinctrl * __must_check pinctrl_get(struct device *dev) |
| 84 | 84 | { |
| 85 | − return ERR_PTR(-ENOSYS); | |
| 85 | + return NULL; | |
| 86 | 86 | } |
| 87 | 87 | |
| 88 | 88 | static inline void pinctrl_put(struct pinctrl *p) |
| @@ -93,7 +93,7 @@ static inline struct pinctrl_state * __must_check pinctrl_lookup_state( · 4 unmodified lines | ||
| 93 | 93 | struct pinctrl *p, |
| 94 | 94 | const char *name) |
| 95 | 95 | { |
| 96 | − return ERR_PTR(-ENOSYS); | |
| 96 | + return NULL; | |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | 99 | static inline int pinctrl_select_state(struct pinctrl *p, |
| @@ -104,7 +104,7 @@ static inline int pinctrl_select_state(struct pinctrl *p, · 4 unmodified lines | ||
| 104 | 104 | |
| 105 | 105 | static inline struct pinctrl * __must_check devm_pinctrl_get(struct device *dev) |
| 106 | 106 | { |
| 107 | − return ERR_PTR(-ENOSYS); | |
| 107 | + return NULL; | |
| 108 | 108 | } |
| 109 | 109 | |
| 110 | 110 | static inline void devm_pinctrl_put(struct pinctrl *p) |