public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [MMC] Fix base address configuration in wbsd
@ 2006-08-06 20:22 Pierre Ossman
  2006-08-06 20:48 ` Russell King
  0 siblings, 1 reply; 11+ messages in thread
From: Pierre Ossman @ 2006-08-06 20:22 UTC (permalink / raw)
  To: rmk+lkml; +Cc: Pierre Ossman, linux-kernel

There were some confusion about base I/O variables in the wbsd driver.
Seems like things have been working on shear luck so far. The global 'io'
variable (used when manually configuring the resources) was used instead of
the local 'base' variable.

Signed-off-by: Pierre Ossman <drzeus@drzeus.cx>
---

 drivers/mmc/wbsd.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mmc/wbsd.c b/drivers/mmc/wbsd.c
index 8a30ef3..ce86887 100644
--- a/drivers/mmc/wbsd.c
+++ b/drivers/mmc/wbsd.c
@@ -41,7 +41,7 @@ #include <asm/scatterlist.h>
 #include "wbsd.h"
 
 #define DRIVER_NAME "wbsd"
-#define DRIVER_VERSION "1.5"
+#define DRIVER_VERSION "1.6"
 
 #define DBG(x...) \
 	pr_debug(DRIVER_NAME ": " x)
@@ -1439,13 +1439,13 @@ static int __devinit wbsd_scan(struct wb
 
 static int __devinit wbsd_request_region(struct wbsd_host *host, int base)
 {
-	if (io & 0x7)
+	if (base & 0x7)
 		return -EINVAL;
 
 	if (!request_region(base, 8, DRIVER_NAME))
 		return -EIO;
 
-	host->base = io;
+	host->base = base;
 
 	return 0;
 }


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

end of thread, other threads:[~2006-08-06 23:19 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-06 20:22 [PATCH] [MMC] Fix base address configuration in wbsd Pierre Ossman
2006-08-06 20:48 ` Russell King
2006-08-06 20:57   ` Pierre Ossman
2006-08-06 21:05     ` Russell King
2006-08-06 21:29       ` Pierre Ossman
2006-08-06 21:35         ` Ben Dooks
2006-08-06 21:52           ` Pierre Ossman
2006-08-06 23:32             ` Alan Cox
2006-08-06 23:19               ` Pierre Ossman
2006-08-06 21:13     ` Randy.Dunlap
2006-08-06 21:30       ` Pierre Ossman

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