diff options
author | Uwe Kleine-König <[email protected]> | 2021-10-12 16:38:32 -0500 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2021-10-18 09:20:15 -0500 |
commit | ba51521b11a15caaae3fddd93c1ead2ffe6b557b (patch) | |
tree | 47cc99f9d11581f487e1189419d2fc240c4e135f /drivers/usb/cdns3/cdns3-trace.c | |
parent | 4141127c44a9b00d941885fc41392697d22a62c3 (diff) |
perf/x86/intel/uncore: Use to_pci_driver() instead of pci_dev->driver
Struct pci_driver contains a struct device_driver, so for PCI devices, it's
easy to convert a device_driver * to a pci_driver * with to_pci_driver().
The device_driver * is in struct device, so we don't need to also keep
track of the pci_driver * in struct pci_dev.
Replace pdev->driver with to_pci_driver(). This is a step toward removing
pci_dev->driver.
[bhelgaas: split to separate patch]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-trace.c')
0 files changed, 0 insertions, 0 deletions