diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mtd/partitions.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/mtd/partitions.h b/include/linux/mtd/partitions.h index 998a6cf35167..afe32db14a87 100644 --- a/include/linux/mtd/partitions.h +++ b/include/linux/mtd/partitions.h | |||
| @@ -73,9 +73,18 @@ extern int parse_mtd_partitions(struct mtd_info *master, const char **types, | |||
| 73 | struct device; | 73 | struct device; |
| 74 | struct device_node; | 74 | struct device_node; |
| 75 | 75 | ||
| 76 | #ifdef CONFIG_MTD_OF_PARTS | ||
| 76 | int __devinit of_mtd_parse_partitions(struct device *dev, | 77 | int __devinit of_mtd_parse_partitions(struct device *dev, |
| 77 | struct device_node *node, | 78 | struct device_node *node, |
| 78 | struct mtd_partition **pparts); | 79 | struct mtd_partition **pparts); |
| 80 | #else | ||
| 81 | static inline int of_mtd_parse_partitions(struct device *dev, | ||
| 82 | struct device_node *node, | ||
| 83 | struct mtd_partition **pparts) | ||
| 84 | { | ||
| 85 | return 0; | ||
| 86 | } | ||
| 87 | #endif | ||
| 79 | 88 | ||
| 80 | #ifdef CONFIG_MTD_PARTITIONS | 89 | #ifdef CONFIG_MTD_PARTITIONS |
| 81 | static inline int mtd_has_partitions(void) { return 1; } | 90 | static inline int mtd_has_partitions(void) { return 1; } |
