[PATCH 2.6.17-rc5] I2C: fix 'ignore' module parameter handling in i2c-core

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Mark,

> This patch fixes a bug in the handling of 'ignore' module parameters of I2C
> client drivers.
> 
> Signed-off-by: Mark M. Hoffman <mhoffman at lightlink.com>
> 
> --- linux-2.6.17-rc5-kdb.orig/drivers/i2c/i2c-core.c
> +++ linux-2.6.17-rc5-kdb/drivers/i2c/i2c-core.c
> @@ -756,9 +756,9 @@ int i2c_probe(struct i2c_adapter *adapte
>  					"parameter for adapter %d, "
>  					"addr 0x%02x\n", adap_id,
>  					address_data->ignore[j + 1]);
> +				ignore = 1;
> +				break;
>  			}
> -			ignore = 1;
> -			break;
>  		}
>  		if (ignore)
>  			continue;
> 

Oops, it seems I screwed up when rewriting i2c_probe 10 months ago.
Thanks a lot for catching this, I've applied your patch.

-- 
Jean Delvare




[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux