Add dummy device_reset() function for !CONFIG_RESET_CONTROLLER build,
so that we do not have to add #ifdef CONFIG_RESET_CONTROLLER in every
single client device drivers that call the function.
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
void reset_control_put(struct reset_control *rstc);
struct reset_control *devm_reset_control_get(struct device *dev, const char *id);
+#ifdef CONFIG_RESET_CONTROLLER
int device_reset(struct device *dev);
+#else
+static inline int device_reset(struct device *dev)
+{
+ return 0;
+}
+#endif /* CONFIG_RESET_CONTROLLER */
#endif