wimax/i2400m: fix inverted value in i2400ms_bus_setup()
authorInaky Perez-Gonzalez <inaky@linux.intel.com>
Tue, 27 Oct 2009 21:33:45 +0000 (14:33 -0700)
committerInaky Perez-Gonzalez <inaky@linux.intel.com>
Tue, 3 Nov 2009 20:49:43 +0000 (12:49 -0800)
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>
drivers/net/wimax/i2400m/sdio.c

index b06d526..76a50ac 100644 (file)
@@ -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);