Skip to content

Commit

Permalink
[MMC] Fix base address configuration in wbsd
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Pierre Ossman authored and Russell King committed Aug 6, 2006
1 parent c723e08 commit 916f3ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mmc/wbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#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)
Expand Down Expand Up @@ -1439,13 +1439,13 @@ static int __devinit wbsd_scan(struct wbsd_host *host)

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;
}
Expand Down

0 comments on commit 916f3ac

Please sign in to comment.