Rajendra Nayak | 8f446e6 | 2011-11-18 16:47:17 +0530 | [diff] [blame] | 1 | /* |
| 2 | * OpenFirmware regulator support routines |
| 3 | * |
| 4 | */ |
| 5 | |
| 6 | #ifndef __LINUX_OF_REG_H |
| 7 | #define __LINUX_OF_REG_H |
| 8 | |
| 9 | #if defined(CONFIG_OF) |
| 10 | extern struct regulator_init_data |
Shawn Guo | d9a861c | 2011-12-01 17:21:06 +0800 | [diff] [blame] | 11 | *of_get_regulator_init_data(struct device *dev, |
| 12 | struct device_node *node); |
Rajendra Nayak | 8f446e6 | 2011-11-18 16:47:17 +0530 | [diff] [blame] | 13 | #else |
| 14 | static inline struct regulator_init_data |
Shawn Guo | d9a861c | 2011-12-01 17:21:06 +0800 | [diff] [blame] | 15 | *of_get_regulator_init_data(struct device *dev, |
| 16 | struct device_node *node) |
Rajendra Nayak | 8f446e6 | 2011-11-18 16:47:17 +0530 | [diff] [blame] | 17 | { |
| 18 | return NULL; |
| 19 | } |
| 20 | #endif /* CONFIG_OF */ |
| 21 | |
| 22 | #endif /* __LINUX_OF_REG_H */ |