[patch 32/57] scx200_i2c: Add missing class parameter

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Greg KH
Date: Tuesday, November 4, 2008 - 4:32 pm

2.6.27-stable review patch.  If anyone has any objections, please let us know.

------------------
From: Lennart Sorensen <lsorense@csclub.uwaterloo.ca>

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 |    1 +
 1 file changed, 1 insertion(+)

--- 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_i
 
 static struct i2c_adapter scx200_i2c_ops = {
 	.owner		   = THIS_MODULE,
+	.class             = I2C_CLASS_HWMON | I2C_CLASS_SPD,
 	.id		   = I2C_HW_B_SCX200,
 	.algo_data	   = &scx200_i2c_data,
 	.name	= "NatSemi SCx200 I2C",

-- 
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 00/57] 2.6.27-stable review, Greg KH, (Tue Nov 4, 4:30 pm)
[patch 07/57] ALSA: hda - Add reboot notifier, Greg KH, (Tue Nov 4, 4:31 pm)
[patch 08/57] kbuild: mkspec - fix build rpm, Greg KH, (Tue Nov 4, 4:31 pm)
[patch 10/57] atl1: fix vlan tag regression, Greg KH, (Tue Nov 4, 4:31 pm)
[patch 11/57] libertas: fix buffer overrun, Greg KH, (Tue Nov 4, 4:31 pm)
[patch 25/57] firewire: fw-sbp2: fix races, Greg KH, (Tue Nov 4, 4:31 pm)
[patch 32/57] scx200_i2c: Add missing class parameter, Greg KH, (Tue Nov 4, 4:32 pm)
[patch 48/57] ACPI: EC: Rename some variables, Greg KH, (Tue Nov 4, 4:33 pm)
[patch 52/57] ACPI: Clear WAK_STS on resume, Greg KH, (Tue Nov 4, 4:33 pm)