summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/misc/cxl/guest.c2
-rw-r--r--drivers/misc/cxl/pci.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/cxl/guest.c b/drivers/misc/cxl/guest.c
index 94e29bab6b44..9d485c9e3fff 100644
--- a/drivers/misc/cxl/guest.c
+++ b/drivers/misc/cxl/guest.c
@@ -27,7 +27,7 @@ static void pci_error_handlers(struct cxl_afu *afu,
return;
list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) {
- afu_drv = afu_dev->driver;
+ afu_drv = to_pci_driver(afu_dev->dev.driver);
if (!afu_drv)
continue;
diff --git a/drivers/misc/cxl/pci.c b/drivers/misc/cxl/pci.c
index 27393b72ea6f..3de0aea62ade 100644
--- a/drivers/misc/cxl/pci.c
+++ b/drivers/misc/cxl/pci.c
@@ -1807,7 +1807,7 @@ static pci_ers_result_t cxl_vphb_error_detected(struct cxl_afu *afu,
return result;
list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) {
- afu_drv = afu_dev->driver;
+ afu_drv = to_pci_driver(afu_dev->dev.driver);
if (!afu_drv)
continue;
@@ -2034,7 +2034,7 @@ static pci_ers_result_t cxl_pci_slot_reset(struct pci_dev *pdev)
* shouldn't start new work until we call
* their resume function.
*/
- afu_drv = afu_dev->driver;
+ afu_drv = to_pci_driver(afu_dev->dev.driver);
if (!afu_drv)
continue;
@@ -2083,7 +2083,7 @@ static void cxl_pci_resume(struct pci_dev *pdev)
continue;
list_for_each_entry(afu_dev, &afu->phb->bus->devices, bus_list) {
- afu_drv = afu_dev->driver;
+ afu_drv = to_pci_driver(afu_dev->dev.driver);
if (!afu_drv)
continue;