]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
scx200_i2c: Add missing class parameter
authorLennart Sorensen <lsorense@csclub.uwaterloo.ca>
Fri, 31 Oct 2008 16:05:59 +0000 (17:05 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 10 Nov 2008 19:18:00 +0000 (11:18 -0800)
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>
drivers/i2c/busses/scx200_i2c.c

index c3022a023449ec2012b7911c0be94d8f7446869b..bb591e539c692f8cee4c9d6ee5d6126c666b50c0 100644 (file)
@@ -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",