diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2021-10-12 23:35:34 +0200 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2021-10-15 18:43:43 +0200 |
commit | 43e85554d4ed1cb2eec417cc43cb5fc60157235e (patch) | |
tree | f94bfc8f89ae421d3fcd7529ca26f7151352c0f9 /drivers/misc/cxl | |
parent | xen/pcifront: Drop pcifront_common_process() tests of pcidev, pdrv (diff) | |
download | linux-43e85554d4ed1cb2eec417cc43cb5fc60157235e.tar.xz linux-43e85554d4ed1cb2eec417cc43cb5fc60157235e.zip |
xen/pcifront: 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/20211004125935.2300113-11-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Diffstat (limited to 'drivers/misc/cxl')
0 files changed, 0 insertions, 0 deletions