Few omap randconfig fixes for v3.5-rc1
Subsystems (3)
Tony Lindgren
maintainercover Few omap randconfig fixes for v3.5-rc1
Here are some fixes for review.
Regards,
Tony
---
Tony Lindgren (3):
ARM: OMAP: Fix MMC_OMAP build when only MMC_OMAP_HS is selected
ARM: OMAP3: Fix omap3_l3_block_irq warning when CONFIG_BUG is not set
ARM: OMAP2+: Fix compile for CONFIG_TIDSPBRIDGE platform init code
arch/arm/mach-omap2/dsp.c | 3 +++ arch/arm/mach-omap2/omap_l3_smx.c | 3 ++- arch/arm/plat-omap/include/plat/mmc.h | 4 +--- 3 files changed, 6 insertions(+), 4 deletions(-)
Signature · 1 line
Signature
Tony Lindgren
maintainerPATCH 1/3 ARM: OMAP: Fix MMC_OMAP build when only MMC_OMAP_HS is selected
If CONFIG_MMC_OMAP is not set and CONFIG_MMC_OMAP_HS is set, we can get error: redefinition of `omap242x_init_mmc' error.
Fix it by removing MMC_OMAP_HS from MMC_OMAP ifdefs as they do not depend on each other.
While at it, also prettify the formatting a bit.
--- arch/arm/plat-omap/include/plat/mmc.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
arch/arm/plat-omap/include/plat/mmc.h +1 -3
@@ -172,8 +172,7 @@ struct omap_mmc_platform_data {extern void omap_mmc_notify_cover_event (struct device *dev,int slot,int is_closed); -#if defined(CONFIG_MMC_OMAP ) || defined(CONFIG_MMC_OMAP_MODULE ) || \ - defined(CONFIG_MMC_OMAP_HS ) || defined(CONFIG_MMC_OMAP_HS_MODULE ) +#if defined(CONFIG_MMC_OMAP ) || defined(CONFIG_MMC_OMAP_MODULE )void omap1_init_mmc (struct omap_mmc_platform_data **mmc_data,int nr_controllers);void omap242x_init_mmc (struct omap_mmc_platform_data **mmc_data);
@@ -185,7 +184,6 @@ static inline void omap1_init_mmc(struct omap_mmc_platform_data **mmc_data,static inline void omap242x_init_mmc (struct omap_mmc_platform_data **mmc_data) { } -#endif extern int omap_msdi_reset (struct omap_hwmod *oh);
Tony Lindgren
maintainerPATCH 2/3 ARM: OMAP3: Fix omap3_l3_block_irq warning when CONFIG_BUG is not set
In reply to Tony LindgrenOtherwise we will get:
arch/arm/mach-omap2/omap_l3_smx.c: In function ?omap3_l3_block_irq?:arch/arm/mach-omap2/omap_l3_smx.c:156: warning: unused variable ?address? arch/arm/mach-omap2/omap_l3_smx.c:155: warning: unused variable ?multi? arch/arm/mach-omap2/omap_l3_smx.c:154: warning: unused variable ?initid? arch/arm/mach-omap2/omap_l3_smx.c:153: warning: unused variable ?code? arch/arm/mach-omap2/omap_l3_smx.c: At top level:arch/arm/mach-omap2/omap_l3_smx.c:68: warning: ?omap3_l3_code_string? defined but not used arch/arm/mach-omap2/omap_l3_smx.c:90: warning: ?omap3_l3_initiator_string? defined but not used
Fix it by always showing the L3 error.
--- arch/arm/mach-omap2/omap_l3_smx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/mach-omap2/omap_l3_smx.c +2 -1
@@ -155,10 +155,11 @@ static irqreturn_t omap3_l3_block_irq(struct omap3_l3 *l3,u8 multi = error &L3_ERROR_LOG_MULTI ;u32 address =omap3_l3_decode_addr (error_addr); -WARN (true,"%s seen by %s %s at address %x\n" , +pr_err ("%s seen by %s %s at address %x\n" ,omap3_l3_code_string (code),omap3_l3_initiator_string (initid), multi ?"Multiple Errors" :"" , address); +WARN_ON (1 );return IRQ_HANDLED ; }
Tony Lindgren
maintainerPATCH 3/3 ARM: OMAP2+: Fix compile for CONFIG_TIDSPBRIDGE platform init code
In reply to Tony LindgrenCommit 7f28427b (ARM: OMAP2+: Move omap_dsp_reserve_sdram_memblock() to mach-omap2) moved DSP platform init code, but failed to include memblock.h causing:
arch/arm/mach-omap2/dsp.c: In function 'omap_dsp_reserve_sdram_memblock':arch/arm/mach-omap2/dsp.c:58: error: implicit declaration of function 'arm_memblock_steal'
--- arch/arm/mach-omap2/dsp.c | 3 +++ 1 file changed, 3 insertions(+)
arch/arm/mach-omap2/dsp.c +3 -0
@@ -20,6 +20,9 @@#include <linux/module.h> #include <linux/platform_device.h> + +#include <asm/memblock.h> +#include "cm2xxx_3xxx.h" #include "prm2xxx_3xxx.h" #ifdef CONFIG_BRIDGE_DVFS