This patch fixes an off-by-one error in chip detection output. I2C kind starts with 1, so this cannot be used directly as the array index. Signed-off-by: Andre Prendel <andre.prendel at gmx.de> --- --- linux-2.6.orig/drivers/hwmon/tmp401.c 2009-05-29 23:09:58.000000000 +0200 +++ linux-2.6/drivers/hwmon/tmp401.c 2009-05-29 23:10:29.000000000 +0200 @@ -576,7 +576,7 @@ goto exit_remove; } dev_info(&client->dev, "Detected TI %s chip\n", - names[data->kind]); + names[data->kind - 1]); return 0;