From: Darrick J. Wong Date: Wed, 7 Jan 2009 15:37:33 +0000 (+0100) Subject: hwmon: (i5k_amb) Load automatically on all 5000/5400 chipsets X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6e31eb2b297c7b6678e6e77393bb8d01b5228bda;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git hwmon: (i5k_amb) Load automatically on all 5000/5400 chipsets It turns out that we cannot create a pci_driver in this driver because PCI will not call this module's probe function if the i5000-edac driver is already loaded. That said, we only want one value (AMBASE) from the PCI config space. Neither driver alters this value, so it's safe to read it. However, we still want the module aliases, so provide that. Signed-off-by: Darrick J. Wong Signed-off-by: Jean Delvare --- diff --git a/drivers/hwmon/i5k_amb.c b/drivers/hwmon/i5k_amb.c index 2ede9388096b..27d7f72a5f11 100644 --- a/drivers/hwmon/i5k_amb.c +++ b/drivers/hwmon/i5k_amb.c @@ -490,6 +490,13 @@ static unsigned long chipset_ids[] = { 0 }; +static struct pci_device_id i5k_amb_ids[] __devinitdata = { + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5000_ERR) }, + { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR) }, + { 0, } +}; +MODULE_DEVICE_TABLE(pci, i5k_amb_ids); + static int __devinit i5k_amb_probe(struct platform_device *pdev) { struct i5k_amb_data *data;