From patchwork Sun Mar 1 04:40:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mattia Dongili X-Patchwork-Id: 9419 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n214otWR004498 for ; Sun, 1 Mar 2009 04:50:57 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753972AbZCAEua (ORCPT ); Sat, 28 Feb 2009 23:50:30 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751534AbZCAEu2 (ORCPT ); Sat, 28 Feb 2009 23:50:28 -0500 Received: from static-220-247-10-204.b-man.svips.gol.ne.jp ([220.247.10.204]:48655 "EHLO smtp.kamineko.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756455AbZCAEuT (ORCPT ); Sat, 28 Feb 2009 23:50:19 -0500 Received: from tadamune.kamineko.org (unknown [192.168.1.21]) by smtp.kamineko.org (Postfix) with ESMTP id E32974D521; Sun, 1 Mar 2009 13:40:45 +0900 (JST) Received: by tadamune.kamineko.org (Postfix, from userid 1000) id 22B9E1316A; Sun, 1 Mar 2009 13:40:45 +0900 (JST) From: Mattia Dongili To: Len Brown Cc: linux-acpi@vger.kernel.org, ISHIKAWA Mutsumi , Mattia Dongili Subject: [PATCH 4/9] [sony-laptop] detect the ICH9 chipset as Type3 Date: Sun, 1 Mar 2009 13:40:40 +0900 Message-Id: <1235882445-2404-5-git-send-email-malattia@linux.it> X-Mailer: git-send-email 1.6.1.3 In-Reply-To: <1235882445-2404-1-git-send-email-malattia@linux.it> References: <1235882445-2404-1-git-send-email-malattia@linux.it> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org From: ISHIKAWA Mutsumi Signed-off-by: Mattia Dongili --- drivers/platform/x86/sony-laptop.c | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/drivers/platform/x86/sony-laptop.c b/drivers/platform/x86/sony-laptop.c index 35491d9..3322368 100644 --- a/drivers/platform/x86/sony-laptop.c +++ b/drivers/platform/x86/sony-laptop.c @@ -1596,6 +1596,13 @@ static void sony_pic_detect_device_type(struct sony_pic_dev *dev) goto out; } + pcidev = pci_get_device(PCI_VENDOR_ID_INTEL, + PCI_DEVICE_ID_INTEL_ICH9_1, NULL); + if (pcidev) { + dev->control = &spic_types[2]; + goto out; + } + /* default */ dev->control = &spic_types[1];