driver core: Call dma_cleanup() on the test_remove path
[linux-2.6-microblaze.git] / drivers / base / dd.c
index 878aa76..a528cec 100644 (file)
@@ -693,6 +693,8 @@ re_probe:
 
                device_remove(dev);
                driver_sysfs_remove(dev);
+               if (dev->bus && dev->bus->dma_cleanup)
+                       dev->bus->dma_cleanup(dev);
                device_unbind_cleanup(dev);
 
                goto re_probe;