diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 7caa1adaf62a6b33d014fa64b04054371344f54d..f5b74856784a909529b9d2c84d538ce1e351a3c6 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -963,9 +963,9 @@ static void __device_release_driver(struct device *dev, struct device *parent) drv->remove(dev); device_links_driver_cleanup(dev); - dma_deconfigure(dev); devres_release_all(dev); + dma_deconfigure(dev); dev->driver = NULL; dev_set_drvdata(dev, NULL); if (dev->pm_domain && dev->pm_domain->dismiss)