]> Pileus Git - ~andy/linux/blobdiff - drivers/mfd/lpc_sch.c
Merge branch 'for-3.0' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound...
[~andy/linux] / drivers / mfd / lpc_sch.c
index 51b2f6065a0bf713c6d5625451c2f32b29a11e87..ea3f52c07ef7fd3436cee6a078f011961bdb92eb 100644 (file)
@@ -61,6 +61,7 @@ static struct mfd_cell lpc_sch_cells[] = {
 
 static struct pci_device_id lpc_sch_ids[] = {
        { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SCH_LPC) },
+       { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_ITC_LPC) },
        { 0, }
 };
 MODULE_DEVICE_TABLE(pci, lpc_sch_ids);
@@ -70,6 +71,7 @@ static int __devinit lpc_sch_probe(struct pci_dev *dev,
 {
        unsigned int base_addr_cfg;
        unsigned short base_addr;
+       int i;
 
        pci_read_config_dword(dev, SMBASE, &base_addr_cfg);
        if (!(base_addr_cfg & (1 << 31))) {
@@ -99,7 +101,10 @@ static int __devinit lpc_sch_probe(struct pci_dev *dev,
        gpio_sch_resource.start = base_addr;
        gpio_sch_resource.end = base_addr + GPIO_IO_SIZE - 1;
 
-       return mfd_add_devices(&dev->dev, -1,
+       for (i=0; i < ARRAY_SIZE(lpc_sch_cells); i++)
+               lpc_sch_cells[i].id = id->device;
+
+       return mfd_add_devices(&dev->dev, 0,
                        lpc_sch_cells, ARRAY_SIZE(lpc_sch_cells), NULL, 0);
 }