diff options
author | Tony Lindgren <tony@atomide.com> | 2012-02-23 19:41:53 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2012-02-23 19:41:53 -0500 |
commit | e3a98fe11b296b833ac540fbc19f407c790fdc05 (patch) | |
tree | bbb5ca74ca4df7002487e5a80353c0cfc1cc0eb5 /arch/arm/mach-omap2/devices.c | |
parent | b2a5124e596e51619e4fbf72fde5baf84538285d (diff) |
ARM: OMAP2+: Fix OMAP_HDQ_BASE build error
If CONFIG_SOC_OMAP3430 is not set and CONFIG_HDQ_MASTER_OMAP
is selected for w1 driver we get the following error:
arch/arm/mach-omap2/devices.c:662:13: error:
'OMAP_HDQ_BASE' undeclared here (not in a function)
Looks like OMAP_HDQ_BASE is valid for all omaps except
2420, so we can remove the ifdef and not register
the device on 2420.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/devices.c')
-rw-r--r-- | arch/arm/mach-omap2/devices.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/devices.c b/arch/arm/mach-omap2/devices.c index 283d11eae693..3ffefe275ea0 100644 --- a/arch/arm/mach-omap2/devices.c +++ b/arch/arm/mach-omap2/devices.c | |||
@@ -654,9 +654,7 @@ void __init omap242x_init_mmc(struct omap_mmc_platform_data **mmc_data) | |||
654 | /*-------------------------------------------------------------------------*/ | 654 | /*-------------------------------------------------------------------------*/ |
655 | 655 | ||
656 | #if defined(CONFIG_HDQ_MASTER_OMAP) || defined(CONFIG_HDQ_MASTER_OMAP_MODULE) | 656 | #if defined(CONFIG_HDQ_MASTER_OMAP) || defined(CONFIG_HDQ_MASTER_OMAP_MODULE) |
657 | #if defined(CONFIG_SOC_OMAP2430) || defined(CONFIG_SOC_OMAP3430) | ||
658 | #define OMAP_HDQ_BASE 0x480B2000 | 657 | #define OMAP_HDQ_BASE 0x480B2000 |
659 | #endif | ||
660 | static struct resource omap_hdq_resources[] = { | 658 | static struct resource omap_hdq_resources[] = { |
661 | { | 659 | { |
662 | .start = OMAP_HDQ_BASE, | 660 | .start = OMAP_HDQ_BASE, |
@@ -679,7 +677,10 @@ static struct platform_device omap_hdq_dev = { | |||
679 | }; | 677 | }; |
680 | static inline void omap_hdq_init(void) | 678 | static inline void omap_hdq_init(void) |
681 | { | 679 | { |
682 | (void) platform_device_register(&omap_hdq_dev); | 680 | if (cpu_is_omap2420()) |
681 | return; | ||
682 | |||
683 | platform_device_register(&omap_hdq_dev); | ||
683 | } | 684 | } |
684 | #else | 685 | #else |
685 | static inline void omap_hdq_init(void) {} | 686 | static inline void omap_hdq_init(void) {} |