Skip to contentSkip to conversation

OMAP: omap-mcbsp: Fix building after replacement

PATCH In review Thomas Weber 5 participants 6 messages Jan 20, 2011 – Jan 21, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP: omap-mcbsp: Fix building after replacement

Fix building omap-mcbsp after replacing ARCH_OMAP24x0 in commit 8a9c1aa6a4caa7db1c2fca4b47168af9077e0f95.

Quoted 10 lines

omap: Start using CONFIG_SOC_OMAP

We want to have just CONFIG_ARCH_OMAP2, 3 and 4. The rest are nowadays just subcategories of these.

Search and replace the following:

   ARCH_OMAP2420               SOC_OMAP2420
   ARCH_OMAP2430               SOC_OMAP2430
   ARCH_OMAP3430               SOC_OMAP3430
---
 sound/soc/omap/omap-mcbsp.c |    1 +
 sound/soc/omap/omap-mcbsp.h |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/omap/omap-mcbsp.c +1 -0
index 3cc293b..ede6afd 100644
@@ -113,6 +113,7 @@ static const int omap44xx_dma_reqs[][2] = {
 static const int omap44xx_dma_reqs[][2] = {};
 #endif
 
+#if defined(CONFIG_SOC_OMAP2420)
 static const unsigned long omap2420_mcbsp_port[][2] = {
 	{ OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR1,
 	  OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR1 },
sound/soc/omap/omap-mcbsp.h +1 -0
index b7b0ce1..37dc721 100644
@@ -54,6 +54,7 @@ enum omap_mcbsp_div {
 #undef  NUM_LINKS
 #define NUM_LINKS	4
 #endif
+#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_OMAP2430)
 #undef  NUM_LINKS
 #define NUM_LINKS	5
 #endif
Signature · 1 line
1.7.4.rc2
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Thomas Weber

Fix building omap-mcbsp after replacing ARCH_OMAP24x0 in commit 8a9c1aa6a4caa7db1c2fca4b47168af9077e0f95.

Quoted 10 lines

  omap: Start using CONFIG_SOC_OMAP

   We want to have just CONFIG_ARCH_OMAP2, 3 and 4. The rest are nowadays just subcategories of these.

   Search and replace the following:

   ARCH_OMAP2420               SOC_OMAP2420
   ARCH_OMAP2430               SOC_OMAP2430
   ARCH_OMAP3430               SOC_OMAP3430

I was just about to post a patch for this, but you beat me to it!

Quoted 1 line
Quoted 32 lines

---
 sound/soc/omap/omap-mcbsp.c |    1 +
 sound/soc/omap/omap-mcbsp.h |    1 +

 2 files changed, 2 insertions(+), 0 deletions(-)
sound/soc/omap/omap-mcbsp.c +1 -0
index 3cc293b..ede6afd 100644
@@ -113,6 +113,7 @@ static const int omap44xx_dma_reqs[][2] = {
  static const int omap44xx_dma_reqs[][2] = {};
  #endif
 
+#if defined(CONFIG_SOC_OMAP2420)
  static const unsigned long omap2420_mcbsp_port[][2] = {
        { OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DXR1,
          OMAP24XX_MCBSP1_BASE + OMAP_MCBSP_REG_DRR1 },
sound/soc/omap/omap-mcbsp.h +1 -1
index b7b0ce1..37dc721 100644
@@ -54,6 +54,7 @@ enum omap_mcbsp_div {
  #undef  NUM_LINKS
  #define NUM_LINKS      4
  #endif
+#if defined(CONFIG_ARCH_OMAP3) || defined(CONFIG_SOC_OMAP2430)
  #undef  NUM_LINKS
  #define NUM_LINKS      5
  #endif
--

1.7.4.rc2

Quoted 5 lines

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw
Quoted 16 lines · Poddar, Sourav
Quoted 14 lines · Thomas Weber

Fix building omap-mcbsp after replacing ARCH_OMAP24x0 in commit 8a9c1aa6a4caa7db1c2fca4b47168af9077e0f95.

Quoted 10 lines

  omap: Start using CONFIG_SOC_OMAP

   We want to have just CONFIG_ARCH_OMAP2, 3 and 4. The rest are nowadays just subcategories of these.

   Search and replace the following:

   ARCH_OMAP2420               SOC_OMAP2420
   ARCH_OMAP2430               SOC_OMAP2430
   ARCH_OMAP3430               SOC_OMAP3430

Quoted 6 lines

I was just about to post a patch for this, but you beat me to it!

Quoted 1 line

Thanks, merging this into the original. Also adding applying into linux-omap master.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
Quoted 20 lines · Tony Lindgren
Quoted 19 lines · Poddar, Sourav
Quoted 14 lines · Thomas Weber

Fix building omap-mcbsp after replacing ARCH_OMAP24x0 in commit 8a9c1aa6a4caa7db1c2fca4b47168af9077e0f95.

Quoted 10 lines

  omap: Start using CONFIG_SOC_OMAP

   We want to have just CONFIG_ARCH_OMAP2, 3 and 4. The rest are nowadays just subcategories of these.

   Search and replace the following:

   ARCH_OMAP2420               SOC_OMAP2420
   ARCH_OMAP2430               SOC_OMAP2430
   ARCH_OMAP3430               SOC_OMAP3430

I was just about to post a patch for this, but you beat me to it!

Quoted 7 lines
Quoted 3 lines
Quoted 1 line

Thanks, merging this into the original. Also adding applying into linux-omap master.

Aren't we breaking multi-omap build with this?

-V Charulatha
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#4 lore raw
Quoted 5 lines · Charulatha
Quoted 5 lines
Quoted 5 lines

I was just about to post a patch for this, but you beat me to it!

Quoted 1 line
Quoted 8 lines
Quoted 5 lines
Quoted 1 line

Thanks, merging this into the original. Also adding applying into linux-omap master.

Aren't we breaking multi-omap build with this?

Don't point it out immediately but these patches looks like yet another reason why there's a need to get rid of these ifdefs and cpu_is_omapxxx tests from the drivers.

Signature · 1 line
Jarkko
#5 lore raw
Quoted 14 lines · Jarkko Nikula
Quoted 11 lines · Charulatha
Quoted 10 lines
Quoted 6 lines

I was just about to post a patch for this, but you beat me to it!

Quoted 1 line

Thanks, merging this into the original. Also adding applying into linux-omap master.

Quoted 5 lines
Quoted 2 lines

Aren't we breaking multi-omap build with this?

Don't point it out immediately but these patches looks like yet another reason why there's a need to get rid of these ifdefs and cpu_is_omapxxx tests from the drivers.

Yes. I agree.

Quoted 4 lines

--
Jarkko