Files
i2som-imx-linux/include/linux/reset.h
Shawn Guo c21e187f02 ENGR00269945: reset: add dummy device_reset() for !CONFIG_RESET_CONTROLLER build
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>
2014-08-27 18:04:27 -05:00

25 lines
649 B
C

#ifndef _LINUX_RESET_H_
#define _LINUX_RESET_H_
struct device;
struct reset_control;
int reset_control_reset(struct reset_control *rstc);
int reset_control_assert(struct reset_control *rstc);
int reset_control_deassert(struct reset_control *rstc);
struct reset_control *reset_control_get(struct device *dev, const char *id);
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