Commit d0d44dd4ac58bc547646a9d0e65b4648f97cb533

Authored by Stephen Boyd
Committed by Mike Turquette
1 parent 7bf21bc81f

reset: Silence warning in reset-controller.h

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>

Showing 1 changed file with 1 additions and 0 deletions Side-by-side Diff

include/linux/reset-controller.h
... ... @@ -21,6 +21,7 @@
21 21  
22 22 struct module;
23 23 struct device_node;
  24 +struct of_phandle_args;
24 25  
25 26 /**
26 27 * struct reset_controller_dev - reset controller entity that might