diff --git a/drivers/base/dd.c b/drivers/base/dd.c index 0d5ac66d16086a..f2424252c9dc53 100644 --- a/drivers/base/dd.c +++ b/drivers/base/dd.c @@ -877,9 +877,9 @@ static void __device_release_driver(struct device *dev, struct device *parent) return; 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)