diff mbox

[v2] radeonfb: Let hwmon driver probe the "monid" I2C bus

Message ID 20110203092310.74f3c690@endymion.delvare (mailing list archive)
State Accepted
Commit 49bb0943329929e73c9a22c97d53c6c8967eb243
Headers show

Commit Message

Jean Delvare Feb. 3, 2011, 8:23 a.m. UTC
None
diff mbox

Patch

--- linux-2.6.38-rc3.orig/drivers/video/aty/radeon_i2c.c	2011-02-03 08:42:36.000000000 +0100
+++ linux-2.6.38-rc3/drivers/video/aty/radeon_i2c.c	2011-02-03 09:13:41.000000000 +0100
@@ -100,6 +100,9 @@  void radeon_create_i2c_busses(struct rad
 {
 	rinfo->i2c[0].rinfo	= rinfo;
 	rinfo->i2c[0].ddc_reg	= GPIO_MONID;
+#ifndef CONFIG_PPC
+	rinfo->i2c[0].adapter.class = I2C_CLASS_HWMON;
+#endif
 	radeon_setup_i2c_bus(&rinfo->i2c[0], "monid");
 
 	rinfo->i2c[1].rinfo	= rinfo;