reset: Silence warning in reset-controller.h
authorStephen Boyd <sboyd@codeaurora.org>
Wed, 15 Jan 2014 18:47:21 +0000 (10:47 -0800)
committerMike Turquette <mturquette@linaro.org>
Thu, 16 Jan 2014 20:00:56 +0000 (12:00 -0800)
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>
include/linux/reset-controller.h

index 2f61311ae3e0d8cd83c826f9e23c8034e0a96ce0..41a4695fde08ca9414f6c541aaa16077b215d3d2 100644 (file)
@@ -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