]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - drivers/mtd/maps/lasat.c
libata: dev_config does not need ap and adev passing
[mv-sheeva.git] / drivers / mtd / maps / lasat.c
index 1c13d2dc0cdff37968ee826ea1cc3607b71a89ae..e3437632105038ba2d366450670eb345fe2932ce 100644 (file)
@@ -79,6 +79,7 @@ static int __init init_lasat(void)
                return 0;
        }
 
+       iounmap(lasat_map.virt);
        return -ENXIO;
 }
 
@@ -89,6 +90,7 @@ static void __exit cleanup_lasat(void)
                map_destroy(lasat_mtd);
        }
        if (lasat_map.virt) {
+               iounmap(lasat_map.virt);
                lasat_map.virt = 0;
        }
 }