[PCMCIA] i82365: release all resources if no devices are found
[linux-3.10.git] / drivers / pcmcia / i82365.c
index 7ce455d..4ddd762 100644 (file)
@@ -1366,6 +1366,7 @@ static int __init init_i82365(void)
     if (sockets == 0) {
        printk("not found.\n");
        platform_device_unregister(&i82365_device);
+       release_region(i365_base, 2);
        driver_unregister(&i82365_driver);
        return -ENODEV;
     }