perf/x86/intel/uncore: Use to_pci_driver() instead of pci_dev->driver
[linux-2.6-microblaze.git] / arch / x86 / events / intel / uncore.c
index c72e368..f1ba6ab 100644 (file)
@@ -1187,7 +1187,7 @@ static int uncore_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id
         * PCI slot and func to indicate the uncore box.
         */
        if (id->driver_data & ~0xffff) {
-               struct pci_driver *pci_drv = pdev->driver;
+               struct pci_driver *pci_drv = to_pci_driver(pdev->dev.driver);
 
                pmu = uncore_pci_find_dev_pmu(pdev, pci_drv->id_table);
                if (pmu == NULL)