diff options
author | Stephen Warren <swarren@nvidia.com> | 2012-09-05 12:29:23 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-09-05 11:57:19 -0700 |
commit | 7c304d7e24fd4996a2b219312f739c4406b8e2e3 (patch) | |
tree | 6f513d00e0bda25b934baf0e3ee36b83ecaa2d04 /drivers/xen/acpi.c | |
parent | e6b42eb6a66c188642aeb447312938c6f6ebee86 (diff) | |
download | blackbird-op-linux-7c304d7e24fd4996a2b219312f739c4406b8e2e3.tar.gz blackbird-op-linux-7c304d7e24fd4996a2b219312f739c4406b8e2e3.zip |
memory: fix build when CONFIG_OF && !CONFIG_DDR
Commit e6b42eb "memory: emif: add device tree support to emif driver"
added drivers/memory/of_memory.c, which references tables defined in
lib/jedec_ddr_data.c. of_memory.c is compiled when CONFIG_OF, whereas
jedec_ddr_data.c is compiled when CONFIG_DDR. This breaks the build
when CONFIG_OF is defined but not CONFIG_DDR:
drivers/built-in.o: In function `of_get_ddr_timings':
drivers/memory/of_memory.c:138: undefined reference to `lpddr2_jedec_timings'
drivers/built-in.o: In function `of_get_min_tck':
drivers/memory/of_memory.c:62: undefined reference to `lpddr2_jedec_min_tck'
make: *** [vmlinux] Error 1
To solve this, only compile of_memory.c when CONFIG_OF && CONFIG_DDR,
otherwise, stub out the functions.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/xen/acpi.c')
0 files changed, 0 insertions, 0 deletions