[patch] sonypi: correct detection of new ICH7-based laptops

From: Arnaud MAZIN
Date: Wed Apr 19 2006 - 13:50:48 EST


This patch simply adds the test to detect the ICH7 based Core Duo SONY laptops (such as the SZ1) as type3 models.
Tested against 2.6.16.9 vanilla.

Signed-off-by: Arnaud MAZIN < arnaud.mazin@xxxxxxx>
Acked-by: Stelian Pop <stelian@xxxxxxxxxxx>

--- linux-2.6.16.9/drivers/char/sonypi.c~ 2006-04-19 11:12:01.342086250 +0200
+++ linux-2.6.16.9/drivers/char/sonypi.c 2006-04-19 12:26:16.953139500 +0200
@@ -1341,6 +1341,9 @@ static int __devinit sonypi_probe(struct
else if ((pcidev = pci_get_device(PCI_VENDOR_ID_INTEL,
PCI_DEVICE_ID_INTEL_ICH6_1, NULL)))
sonypi_device.model = SONYPI_DEVICE_MODEL_TYPE3;
+ else if ((pcidev = pci_get_device(PCI_VENDOR_ID_INTEL,
+ PCI_DEVICE_ID_INTEL_ICH7_1, NULL)))
+ sonypi_device.model = SONYPI_DEVICE_MODEL_TYPE3;
else
sonypi_device.model = SONYPI_DEVICE_MODEL_TYPE2;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/