From patchwork Thu Feb 3 08:23:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 528731 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p138NNfa009300 for ; Thu, 3 Feb 2011 08:23:23 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755131Ab1BCIXW (ORCPT ); Thu, 3 Feb 2011 03:23:22 -0500 Received: from zone0.gcu-squad.org ([212.85.147.21]:43995 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754956Ab1BCIXW (ORCPT ); Thu, 3 Feb 2011 03:23:22 -0500 Received: from jdelvare.pck.nerim.net ([62.212.121.182] helo=endymion.delvare) by services.gcu-squad.org (GCU Mailer Daemon) with esmtpsa id 1PkvYv-00076w-Ue (TLSv1:AES128-SHA:128) (envelope-from ) ; Thu, 03 Feb 2011 10:33:14 +0100 Date: Thu, 3 Feb 2011 09:23:10 +0100 From: Jean Delvare To: Benjamin Herrenschmidt Cc: linux-fbdev@vger.kernel.org, Alexander Goomenyuk , Paul Mundt Subject: [PATCH v2] radeonfb: Let hwmon driver probe the "monid" I2C bus Message-ID: <20110203092310.74f3c690@endymion.delvare> X-Mailer: Claws Mail 3.7.5 (GTK+ 2.20.1; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Thu, 03 Feb 2011 08:23:23 +0000 (UTC) --- 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;