Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16723
b: refs/heads/master
c: 63648fb
h: refs/heads/master
i:
  16721: 071b8bf
  16719: f505c46
v: v3
  • Loading branch information
Dmitry Torokhov authored and Russell King committed Jan 3, 2006
1 parent 23ec06b commit 906bf64
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: a6f6c96b65d7f65a7a7bf5cbe874eda182a6b2cc
refs/heads/master: 63648fb5c0173614064e329503cc75c907dcb1a1
9 changes: 3 additions & 6 deletions trunk/drivers/mmc/wbsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1456,13 +1456,11 @@ static int __devinit wbsd_scan(struct wbsd_host* host)
* Iterate through all ports, all codes to
* find hardware that is in our known list.
*/
for (i = 0;i < sizeof(config_ports)/sizeof(int);i++)
{
for (i = 0; i < ARRAY_SIZE(config_ports); i++) {
if (!request_region(config_ports[i], 2, DRIVER_NAME))
continue;

for (j = 0;j < sizeof(unlock_codes)/sizeof(int);j++)
{
for (j = 0; j < ARRAY_SIZE(unlock_codes); j++) {
id = 0xFFFF;

host->config = config_ports[i];
Expand All @@ -1478,8 +1476,7 @@ static int __devinit wbsd_scan(struct wbsd_host* host)

wbsd_lock_config(host);

for (k = 0;k < sizeof(valid_ids)/sizeof(int);k++)
{
for (k = 0; k < ARRAY_SIZE(valid_ids); k++) {
if (id == valid_ids[k])
{
host->chip_id = id;
Expand Down

0 comments on commit 906bf64

Please sign in to comment.