diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2019-06-03 04:12:33 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2019-06-17 07:45:21 -0400 |
commit | 5ec47cda74e98ad2f723f93b4a97ba87638338aa (patch) | |
tree | ed3e9856fce5d3474844ad12bdd664716e7597c7 | |
parent | 7b43b8fdc9a6283c0b9405542c4406cfa1e5689a (diff) |
memory: move jedec_ddr.h from include/memory to drivers/memory/
Now that jedec_ddr_data.c was moved from lib/ to drivers/memory/,
<memory/jedec_ddr.h> is included only from drivers/memory/.
Make it a local header of drivers/memory/.
The directory include/memory is now gone.
While I am here, I also changed #include <linux/module.h> to
<linux/export.h>. Because CONFIG_DDR is bool, jedec_ddr_data.c is
never compiled as a module.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
-rw-r--r-- | drivers/memory/emif.c | 3 | ||||
-rw-r--r-- | drivers/memory/jedec_ddr.h (renamed from include/memory/jedec_ddr.h) | 6 | ||||
-rw-r--r-- | drivers/memory/jedec_ddr_data.c | 5 | ||||
-rw-r--r-- | drivers/memory/of_memory.c | 3 |
4 files changed, 10 insertions, 7 deletions
diff --git a/drivers/memory/emif.c b/drivers/memory/emif.c index 2f214440008c..32cad7540d78 100644 --- a/drivers/memory/emif.c +++ b/drivers/memory/emif.c | |||
@@ -26,8 +26,9 @@ | |||
26 | #include <linux/list.h> | 26 | #include <linux/list.h> |
27 | #include <linux/spinlock.h> | 27 | #include <linux/spinlock.h> |
28 | #include <linux/pm.h> | 28 | #include <linux/pm.h> |
29 | #include <memory/jedec_ddr.h> | 29 | |
30 | #include "emif.h" | 30 | #include "emif.h" |
31 | #include "jedec_ddr.h" | ||
31 | #include "of_memory.h" | 32 | #include "of_memory.h" |
32 | 33 | ||
33 | /** | 34 | /** |
diff --git a/include/memory/jedec_ddr.h b/drivers/memory/jedec_ddr.h index ddad0f870e5d..a2094a9a588e 100644 --- a/include/memory/jedec_ddr.h +++ b/drivers/memory/jedec_ddr.h | |||
@@ -9,8 +9,8 @@ | |||
9 | * it under the terms of the GNU General Public License version 2 as | 9 | * it under the terms of the GNU General Public License version 2 as |
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | #ifndef __LINUX_JEDEC_DDR_H | 12 | #ifndef __JEDEC_DDR_H |
13 | #define __LINUX_JEDEC_DDR_H | 13 | #define __JEDEC_DDR_H |
14 | 14 | ||
15 | #include <linux/types.h> | 15 | #include <linux/types.h> |
16 | 16 | ||
@@ -172,4 +172,4 @@ extern const struct lpddr2_timings | |||
172 | lpddr2_jedec_timings[NUM_DDR_TIMING_TABLE_ENTRIES]; | 172 | lpddr2_jedec_timings[NUM_DDR_TIMING_TABLE_ENTRIES]; |
173 | extern const struct lpddr2_min_tck lpddr2_jedec_min_tck; | 173 | extern const struct lpddr2_min_tck lpddr2_jedec_min_tck; |
174 | 174 | ||
175 | #endif /* __LINUX_JEDEC_DDR_H */ | 175 | #endif /* __JEDEC_DDR_H */ |
diff --git a/drivers/memory/jedec_ddr_data.c b/drivers/memory/jedec_ddr_data.c index 6d2cbf1d567f..1f9ca0f23407 100644 --- a/drivers/memory/jedec_ddr_data.c +++ b/drivers/memory/jedec_ddr_data.c | |||
@@ -10,8 +10,9 @@ | |||
10 | * published by the Free Software Foundation. | 10 | * published by the Free Software Foundation. |
11 | */ | 11 | */ |
12 | 12 | ||
13 | #include <memory/jedec_ddr.h> | 13 | #include <linux/export.h> |
14 | #include <linux/module.h> | 14 | |
15 | #include "jedec_ddr.h" | ||
15 | 16 | ||
16 | /* LPDDR2 addressing details from JESD209-2 section 2.4 */ | 17 | /* LPDDR2 addressing details from JESD209-2 section 2.4 */ |
17 | const struct lpddr2_addressing | 18 | const struct lpddr2_addressing |
diff --git a/drivers/memory/of_memory.c b/drivers/memory/of_memory.c index 12a61f558644..46539b27a3fb 100644 --- a/drivers/memory/of_memory.c +++ b/drivers/memory/of_memory.c | |||
@@ -10,8 +10,9 @@ | |||
10 | #include <linux/list.h> | 10 | #include <linux/list.h> |
11 | #include <linux/of.h> | 11 | #include <linux/of.h> |
12 | #include <linux/gfp.h> | 12 | #include <linux/gfp.h> |
13 | #include <memory/jedec_ddr.h> | ||
14 | #include <linux/export.h> | 13 | #include <linux/export.h> |
14 | |||
15 | #include "jedec_ddr.h" | ||
15 | #include "of_memory.h" | 16 | #include "of_memory.h" |
16 | 17 | ||
17 | /** | 18 | /** |