diff options
author | Christoph Hellwig <hch@lst.de> | 2018-08-24 10:40:24 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2018-09-08 12:19:20 +0300 |
commit | ccf640f4c9988653ef884672381b03b9be247bec (patch) | |
tree | be4374976e5954926b09b3a30314e03d79bc930a /drivers/base/dd.c | |
parent | 58643a3a8097e93b1c965d0ad3f0d65613b95b2c (diff) | |
download | linux-ccf640f4c9988653ef884672381b03b9be247bec.tar.xz |
dma-mapping: remove dma_configure
There is no good reason for this indirection given that the method
always exists.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Diffstat (limited to 'drivers/base/dd.c')
-rw-r--r-- | drivers/base/dd.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/base/dd.c b/drivers/base/dd.c index edfc9f0b1180..65128cf8427c 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -480,9 +480,11 @@ re_probe: if (ret) goto pinctrl_bind_failed; - ret = dma_configure(dev); - if (ret) - goto dma_failed; + if (dev->bus->dma_configure) { + ret = dev->bus->dma_configure(dev); + if (ret) + goto dma_failed; + } if (driver_sysfs_add(dev)) { printk(KERN_ERR "%s: driver_sysfs_add(%s) failed\n", |