Skip to content

Commit

Permalink
reset: Silence warning in reset-controller.h
Browse files Browse the repository at this point in the history
If a user of <linux/reset-controller.h> doesn't include
<linux/of.h> before including reset-controller.h they'll get a
warning as follows:

  include/linux/reset-controller.h:44:17:
  warning: 'struct of_phandle_args' declared inside parameter list

This is because of_phandle_args is not forward declared. Add the
declaration to silence this warning.

Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
  • Loading branch information
Stephen Boyd authored and Mike Turquette committed Jan 16, 2014
1 parent 7bf21bc commit d0d44dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/reset-controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ struct reset_control_ops {

struct module;
struct device_node;
struct of_phandle_args;

/**
* struct reset_controller_dev - reset controller entity that might
Expand Down

0 comments on commit d0d44dd

Please sign in to comment.