Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4062
b: refs/heads/master
c: 3eee0d0
h: refs/heads/master
v: v3
  • Loading branch information
Adrian Bunk authored and Russell King committed Jul 1, 2005
1 parent 65f3906 commit f83e74b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 30 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e6293dd3d4372c114674266158053d049366a0d
refs/heads/master: 3eee0d03e33b0294eb3165c96f213a8c8ee461a8
29 changes: 7 additions & 22 deletions trunk/drivers/mmc/wbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,28 +54,6 @@
#define DBGF(x...) do { } while (0)
#endif

#ifdef CONFIG_MMC_DEBUG
void DBG_REG(int reg, u8 value)
{
int i;

printk(KERN_DEBUG "wbsd: Register %d: 0x%02X %3d '%c' ",
reg, (int)value, (int)value, (value < 0x20)?'.':value);

for (i = 7;i >= 0;i--)
{
if (value & (1 << i))
printk("x");
else
printk(".");
}

printk("\n");
}
#else
#define DBG_REG(r, v) do {} while (0)
#endif

/*
* Device resources
*/
Expand All @@ -92,6 +70,13 @@ MODULE_DEVICE_TABLE(pnp, pnp_dev_table);

#endif /* CONFIG_PNP */

static const int config_ports[] = { 0x2E, 0x4E };
static const int unlock_codes[] = { 0x83, 0x87 };

static const int valid_ids[] = {
0x7112,
};

#ifdef CONFIG_PNP
static unsigned int nopnp = 0;
#else
Expand Down
7 changes: 0 additions & 7 deletions trunk/drivers/mmc/wbsd.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
* published by the Free Software Foundation.
*/

const int config_ports[] = { 0x2E, 0x4E };
const int unlock_codes[] = { 0x83, 0x87 };

const int valid_ids[] = {
0x7112,
};

#define LOCK_CODE 0xAA

#define WBSD_CONF_SWRST 0x02
Expand Down

0 comments on commit f83e74b

Please sign in to comment.