aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wimax
diff options
context:
space:
mode:
authorInaky Perez-Gonzalez <inaky@linux.intel.com>2009-10-27 17:33:45 -0400
committerInaky Perez-Gonzalez <inaky@linux.intel.com>2009-11-03 15:49:43 -0500
commite7fec0bbf13b9bc2869a18e66f0cda7bb7f559f0 (patch)
tree85ea7f9d0c91f847202dd2a7cb75ef22f9472a68 /drivers/net/wimax
parent20d57f8e2553fa6f5cd382131b7f18e91c7141fc (diff)
wimax/i2400m: fix inverted value in i2400ms_bus_setup()
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>
Diffstat (limited to 'drivers/net/wimax')
-rw-r--r--drivers/net/wimax/i2400m/sdio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wimax/i2400m/sdio.c b/drivers/net/wimax/i2400m/sdio.c
index b06d52633a43..76a50ac02ebb 100644
--- a/drivers/net/wimax/i2400m/sdio.c
+++ b/drivers/net/wimax/i2400m/sdio.c
@@ -183,9 +183,9 @@ int i2400ms_bus_setup(struct i2400m *i2400m)
183 } 183 }
184 184
185 if (i2400ms->iwmc3200 && i2400ms->debugfs_dentry == NULL) 185 if (i2400ms->iwmc3200 && i2400ms->debugfs_dentry == NULL)
186 retries = 0;
187 else
188 retries = 1; 186 retries = 1;
187 else
188 retries = 0;
189 result = i2400ms_enable_function(i2400ms, retries); 189 result = i2400ms_enable_function(i2400ms, retries);
190 if (result < 0) { 190 if (result < 0) {
191 dev_err(dev, "Cannot enable SDIO function: %d\n", result); 191 dev_err(dev, "Cannot enable SDIO function: %d\n", result);