summaryrefslogtreecommitdiff
path: root/drivers/base/dd.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2018-08-24 10:40:24 +0300
committerChristoph Hellwig <hch@lst.de>2018-09-08 12:19:20 +0300
commitccf640f4c9988653ef884672381b03b9be247bec (patch)
treebe4374976e5954926b09b3a30314e03d79bc930a /drivers/base/dd.c
parent58643a3a8097e93b1c965d0ad3f0d65613b95b2c (diff)
downloadlinux-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.c8
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",