aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/memory/of_memory.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/memory/of_memory.h')
-rw-r--r--drivers/memory/of_memory.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/memory/of_memory.h b/drivers/memory/of_memory.h
index 20b496efed6..ef2514f553d 100644
--- a/drivers/memory/of_memory.h
+++ b/drivers/memory/of_memory.h
@@ -12,7 +12,7 @@
12#ifndef __LINUX_MEMORY_OF_REG_H 12#ifndef __LINUX_MEMORY_OF_REG_H
13#define __LINUX_MEMORY_OF_REG_H 13#define __LINUX_MEMORY_OF_REG_H
14 14
15#ifdef CONFIG_OF 15#if defined(CONFIG_OF) && defined(CONFIG_DDR)
16extern const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np, 16extern const struct lpddr2_min_tck *of_get_min_tck(struct device_node *np,
17 struct device *dev); 17 struct device *dev);
18extern const struct lpddr2_timings 18extern const struct lpddr2_timings
@@ -31,6 +31,6 @@ static inline const struct lpddr2_timings
31{ 31{
32 return NULL; 32 return NULL;
33} 33}
34#endif /* CONFIG_OF */ 34#endif /* CONFIG_OF && CONFIG_DDR */
35 35
36#endif /* __LINUX_MEMORY_OF_REG_ */ 36#endif /* __LINUX_MEMORY_OF_REG_ */