OMAPDSS: VENC: fix NULL pointer dereference in DSS2 VENC sysfs debug attr on OMAP4
[zen-stable.git] / include / linux / regulator / of_regulator.h
blob769704f296e56b367729fe550f88b3f68cc15001
1 /*
2 * OpenFirmware regulator support routines
4 */
6 #ifndef __LINUX_OF_REG_H
7 #define __LINUX_OF_REG_H
9 #if defined(CONFIG_OF)
10 extern struct regulator_init_data
11 *of_get_regulator_init_data(struct device *dev,
12 struct device_node *node);
13 #else
14 static inline struct regulator_init_data
15 *of_get_regulator_init_data(struct device *dev,
16 struct device_node *node)
18 return NULL;
20 #endif /* CONFIG_OF */
22 #endif /* __LINUX_OF_REG_H */