diff options
author | Dave Jiang <dave.jiang@intel.com> | 2021-07-15 20:43:20 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2021-07-21 06:39:15 +0200 |
commit | 700af3a0a26cbac87e4a0ae1dfa79597d0056d5f (patch) | |
tree | 2b20292106cb58592b1d8fc1d615e2b752e3f501 /drivers/dma/idxd/irq.c | |
parent | dmaengine: idxd: add driver name (diff) | |
download | linux-700af3a0a26cbac87e4a0ae1dfa79597d0056d5f.tar.xz linux-700af3a0a26cbac87e4a0ae1dfa79597d0056d5f.zip |
dmaengine: idxd: add 'struct idxd_dev' as wrapper for conf_dev
Add a 'struct idxd_dev' that wraps the 'struct device' for idxd conf_dev
that registers with the dsa bus. This is introduced in order to deal with
multiple different types of 'devices' that are registered on the dsa_bus
when the compat driver needs to route them to the correct driver to attach.
The bind() call now can determine the type of device and then do the
appropriate driver matching.
Reviewed-by Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/162637460065.744545.584492831446090984.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/idxd/irq.c')
-rw-r--r-- | drivers/dma/idxd/irq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/idxd/irq.c b/drivers/dma/idxd/irq.c index 2924819ca8f3..be65d55e1fc4 100644 --- a/drivers/dma/idxd/irq.c +++ b/drivers/dma/idxd/irq.c @@ -51,7 +51,7 @@ static void idxd_device_reinit(struct work_struct *work) rc = idxd_wq_enable(wq); if (rc < 0) { dev_warn(dev, "Unable to re-enable wq %s\n", - dev_name(&wq->conf_dev)); + dev_name(wq_confdev(wq))); } } } |