Skip to content

Commit

Permalink
Merge branch 'reset/fixes' of git://git.pengutronix.de/git/pza/linux …
Browse files Browse the repository at this point in the history
…into next/fixes-non-critical

Merge a fix from Philipp Zabel:

This patch fixes an erroneous revert that slipped in with commit
b424080 reset: Add optional resets and
stubs.

* 'reset/fixes' of git://git.pengutronix.de/git/pza/linux:
  reset: Add of_reset_control_get to reset.h

Signed-off-by: Olof Johansson <olof@lixom.net>
  • Loading branch information
Olof Johansson committed May 26, 2014
2 parents 4b660a7 + e3ec0a8 commit 6580ad3
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/linux/reset.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define _LINUX_RESET_H_

struct device;
struct device_node;
struct reset_control;

#ifdef CONFIG_RESET_CONTROLLER
Expand Down Expand Up @@ -33,6 +34,9 @@ static inline struct reset_control *devm_reset_control_get_optional(
return devm_reset_control_get(dev, id);
}

struct reset_control *of_reset_control_get(struct device_node *node,
const char *id);

#else

static inline int reset_control_reset(struct reset_control *rstc)
Expand Down Expand Up @@ -75,6 +79,12 @@ static inline struct reset_control *devm_reset_control_get_optional(
return ERR_PTR(-ENOSYS);
}

static inline struct reset_control *of_reset_control_get(
struct device_node *node, const char *id)
{
return ERR_PTR(-ENOSYS);
}

#endif /* CONFIG_RESET_CONTROLLER */

#endif

0 comments on commit 6580ad3

Please sign in to comment.