ARM: mach-pnx4008: remove mach/memory.h
[deliverable/linux.git] / lib / devres.c
index 6efddf53b90c7d53048241bdac70273041df07c1..7c0e953a7486afa4fd5ef9bf98346b4f41e810a9 100644 (file)
@@ -79,9 +79,9 @@ EXPORT_SYMBOL(devm_ioremap_nocache);
  */
 void devm_iounmap(struct device *dev, void __iomem *addr)
 {
-       iounmap(addr);
        WARN_ON(devres_destroy(dev, devm_ioremap_release, devm_ioremap_match,
                               (void *)addr));
+       iounmap(addr);
 }
 EXPORT_SYMBOL(devm_iounmap);
 
This page took 0.038353 seconds and 5 git commands to generate.