public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Paul Walmsley <paul@pwsan.com>
To: lvcargnini@gmail.com, dirk.behme@googlemail.com, tony@atomide.com
Cc: linux-omap-open-source@linux.omap.com
Subject: Re: [PATCH] include/asm-arm/arch-omap/omap24xx.h
Date: Wed, 24 Oct 2007 23:31:43 -0600	[thread overview]
Message-ID: <20071025053143.222542615@pwsan.com> (raw)
In-Reply-To: <471F868A.3060106@googlemail.com>

Hello Dirk, Luis, 

how about the patch (following in the next message) instead?  That way
we don't define OMAP2_CTRL_BASE for non-OMAP2 builds.   Build-tested
with OSK5912 default config with MMC driver enabled.


- Paul
>From paul@pwsan.com Wed Oct 24 23:36:10 2007
Message-Id: <20071025053610.715631084@pwsan.com>
User-Agent: quilt/0.46-1
Date: Wed, 24 Oct 2007 23:31:44 -0600
From: Paul Walmsley <paul@pwsan.com>
To: lvcargnini@gmail.com,
 dirk.behme@googlemail.com,
 tony@atomide.com
Cc: linux-omap-open-source@linux.omap.com
Bcc:  <471F868A.3060106@googlemail.com>
Subject: fix undeclared OMAP2_CTRL_BASE for OMAP MMC driver in OMAP1 compiles
References: <ae36f8040710240958l579ad5el16f17cb073e25387@mail.gmail.com>
    <471F868A.3060106@googlemail.com>
 <20071025053143.222542615@pwsan.com>
Content-Disposition: inline; filename=fix_omap2_ctrl_base_mmc_compile_bug.patch
Replace-Subject: fix undeclared OMAP2_CTRL_BASE for OMAP MMC driver in OMAP1 compiles

Remove reference to OMAP2_CTRL_BASE in arch/arm/plat-omap/devices.c
if we aren't building for an OMAP2 platform.

Signed-off-by: Paul Walmsley <paul@pwsan.com>

---
 arch/arm/plat-omap/devices.c |    2 ++
 1 file changed, 2 insertions(+)

Index: linux-omap/arch/arm/plat-omap/devices.c
===================================================================
--- linux-omap.orig/arch/arm/plat-omap/devices.c	2007-08-29 13:53:47.000000000 -0600
+++ linux-omap/arch/arm/plat-omap/devices.c	2007-10-24 23:29:51.000000000 -0600
@@ -339,6 +339,7 @@
 				omap_cfg_reg(MMC_DAT3);
 			}
 		}
+#if defined(CONFIG_ARCH_OMAP24XX)
 		if (mmc->internal_clock) {
 			/*
 			 * Use internal loop-back in MMC/SDIO
@@ -350,6 +351,7 @@
 				omap_writel(v, OMAP2_CONTROL_DEVCONF);
 			}
 		}
+#endif
 		mmc1_conf = *mmc;
 		(void) platform_device_register(&mmc_omap_device1);
 	}

-- 

  reply	other threads:[~2007-10-25  5:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-24 16:58 [PATCH] include/asm-arm/arch-omap/omap24xx.h Luís Cargnini
2007-10-24 17:53 ` Dirk Behme
2007-10-25  5:31   ` Paul Walmsley [this message]
2007-10-25  5:31     ` fix undeclared OMAP2_CTRL_BASE for OMAP MMC driver in OMAP1 compiles Paul Walmsley
2007-10-25  5:54     ` [PATCH] include/asm-arm/arch-omap/omap24xx.h Luís Cargnini
2007-10-25 15:28     ` Dirk Behme
2007-10-25 16:00       ` Paul Walmsley
2007-10-31 15:22         ` Tony Lindgren
2007-11-01  8:29           ` Tony Lindgren
2007-11-05  7:57             ` Paul Walmsley
2007-11-05 19:34               ` Dirk Behme
2007-11-06 10:23                 ` Paul Walmsley
2007-11-06 12:58                   ` Tony Lindgren
2007-11-07  4:21                     ` Luís Cargnini
  -- strict thread matches above, loose matches on Subject: below --
2007-11-07  4:27 [PATCH]include/asm-arm/arch-omap/omap24xx.h Luís Cargnini
2007-11-15 21:24 ` [PATCH]include/asm-arm/arch-omap/omap24xx.h Tony Lindgren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20071025053143.222542615@pwsan.com \
    --to=paul@pwsan.com \
    --cc=dirk.behme@googlemail.com \
    --cc=linux-omap-open-source@linux.omap.com \
    --cc=lvcargnini@gmail.com \
    --cc=tony@atomide.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox