summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Sorensen <lsorense@csclub.uwaterloo.ca>2008-10-31 19:05:59 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2008-11-10 22:18:00 +0300
commit69e0453ecbaec161673aff629e22297572033d29 (patch)
treecbda115cf57761ec95840135dda7a8880ca2026b
parentfac229f3dcd33ed79adbda06badc802f81389485 (diff)
downloadlinux-69e0453ecbaec161673aff629e22297572033d29.tar.xz
scx200_i2c: Add missing class parameter
commit 4a029abee0f1d69cb0445657d6fa5a38597bd17d upstream The scx200_i2c driver is missing the .class parameter, which means no i2c drivers are willing to probe for devices on the bus and attach to them. Signed-off-by: Len Sorensen <lsorense@csclub.uwaterloo.ca> Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/i2c/busses/scx200_i2c.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/i2c/busses/scx200_i2c.c b/drivers/i2c/busses/scx200_i2c.c
index c3022a023449..bb591e539c69 100644
--- a/drivers/i2c/busses/scx200_i2c.c
+++ b/drivers/i2c/busses/scx200_i2c.c
@@ -81,6 +81,7 @@ static struct i2c_algo_bit_data scx200_i2c_data = {
static struct i2c_adapter scx200_i2c_ops = {
.owner = THIS_MODULE,
+ .class = I2C_CLASS_HWMON,
.id = I2C_HW_B_SCX200,
.algo_data = &scx200_i2c_data,
.name = "NatSemi SCx200 I2C",