public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] MMC: Fix omap compile by replacing dev_name with dma_dev_name
@ 2008-05-06 23:36 Tony Lindgren
  2008-05-14 19:01 ` Pierre Ossman
  0 siblings, 1 reply; 2+ messages in thread
From: Tony Lindgren @ 2008-05-06 23:36 UTC (permalink / raw)
  To: Pierre Ossman
  Cc: linux-kernel, linux-omap, Paul Walmsley, Carlos Aguiar,
	Anderson Briglia, Syed Khasim

[-- Attachment #1: Type: text/plain, Size: 153 bytes --]

Hi Pierre,

Here's a fix to make omap.c compile again because of a name conflict
introduced by 3efcdd76c4906236f9043c8b34837818177b291d.

Regards,

Tony

[-- Attachment #2: mmc-omap-fix-compile.patch --]
[-- Type: text/x-diff, Size: 2112 bytes --]

>From 3efcdd76c4906236f9043c8b34837818177b291d Mon Sep 17 00:00:00 2001
From: Tony Lindgren <tony@atomide.com>
Date: Tue, 6 May 2008 16:06:06 -0700
Subject: [PATCH] MMC: Fix omap compile by replacing dev_name with dma_dev_name

This patch fixes error:

drivers/mmc/host/omap.c: In function 'mmc_omap_get_dma_channel':
drivers/mmc/host/omap.c:1038: error: called object 'dev_name' is not a function

Commit 06916639e2fed9ee475efef2747a1b7429f8fe76 adds a function
called dev_name. This will cause a name conflict as dev_dbg calls
dev_name(((host->mmc)->parent)).

This same issue should not affect other drivers as they don't seem
to use dev_name with dev_dbg.

Thanks to Paul Walmsley <paul@pwsan.com> for figuring this one out.

Cc: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c
index 14759e9..549517c 100644
--- a/drivers/mmc/host/omap.c
+++ b/drivers/mmc/host/omap.c
@@ -1003,7 +1003,7 @@ static void mmc_omap_dma_cb(int lch, u16 ch_status, void *data)
 
 static int mmc_omap_get_dma_channel(struct mmc_omap_host *host, struct mmc_data *data)
 {
-	const char *dev_name;
+	const char *dma_dev_name;
 	int sync_dev, dma_ch, is_read, r;
 
 	is_read = !(data->flags & MMC_DATA_WRITE);
@@ -1018,21 +1018,21 @@ static int mmc_omap_get_dma_channel(struct mmc_omap_host *host, struct mmc_data
 	if (is_read) {
 		if (host->id == 1) {
 			sync_dev = OMAP_DMA_MMC_RX;
-			dev_name = "MMC1 read";
+			dma_dev_name = "MMC1 read";
 		} else {
 			sync_dev = OMAP_DMA_MMC2_RX;
-			dev_name = "MMC2 read";
+			dma_dev_name = "MMC2 read";
 		}
 	} else {
 		if (host->id == 1) {
 			sync_dev = OMAP_DMA_MMC_TX;
-			dev_name = "MMC1 write";
+			dma_dev_name = "MMC1 write";
 		} else {
 			sync_dev = OMAP_DMA_MMC2_TX;
-			dev_name = "MMC2 write";
+			dma_dev_name = "MMC2 write";
 		}
 	}
-	r = omap_request_dma(sync_dev, dev_name, mmc_omap_dma_cb,
+	r = omap_request_dma(sync_dev, dma_dev_name, mmc_omap_dma_cb,
 			     host, &dma_ch);
 	if (r != 0) {
 		dev_dbg(mmc_dev(host->mmc), "omap_request_dma() failed with %d\n", r);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] MMC: Fix omap compile by replacing dev_name with dma_dev_name
  2008-05-06 23:36 [PATCH] MMC: Fix omap compile by replacing dev_name with dma_dev_name Tony Lindgren
@ 2008-05-14 19:01 ` Pierre Ossman
  0 siblings, 0 replies; 2+ messages in thread
From: Pierre Ossman @ 2008-05-14 19:01 UTC (permalink / raw)
  To: Tony Lindgren
  Cc: linux-kernel, linux-omap, Paul Walmsley, Carlos Aguiar,
	Anderson Briglia, Syed Khasim

On Tue, 6 May 2008 16:36:47 -0700
Tony Lindgren <tony@atomide.com> wrote:

> Hi Pierre,
> 
> Here's a fix to make omap.c compile again because of a name conflict
> introduced by 3efcdd76c4906236f9043c8b34837818177b291d.
> 
> Regards,
> 
> Tony


applied, thanks

-- 
     -- Pierre Ossman

  Linux kernel, MMC maintainer        http://www.kernel.org
  rdesktop, core developer          http://www.rdesktop.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-05-14 19:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-06 23:36 [PATCH] MMC: Fix omap compile by replacing dev_name with dma_dev_name Tony Lindgren
2008-05-14 19:01 ` Pierre Ossman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox