Skip to content

Commit

Permalink
wimax/i2400m: fix inverted value in i2400ms_bus_setup()
Browse files Browse the repository at this point in the history
Fix inverted setting of 'retries'; when we are in the probe() path, we
should retry to enable the function only once; otherwise until it
times out.

Signed-off-by: Inaky Perez-Gonzalez <inaky@linux.intel.com>
  • Loading branch information
Inaky Perez-Gonzalez committed Nov 3, 2009
1 parent 20d57f8 commit e7fec0b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/wimax/i2400m/sdio.c
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ int i2400ms_bus_setup(struct i2400m *i2400m)
}

if (i2400ms->iwmc3200 && i2400ms->debugfs_dentry == NULL)
retries = 0;
else
retries = 1;
else
retries = 0;
result = i2400ms_enable_function(i2400ms, retries);
if (result < 0) {
dev_err(dev, "Cannot enable SDIO function: %d\n", result);
Expand Down

0 comments on commit e7fec0b

Please sign in to comment.