mmc: host: rk_sdmmc:
[firefly-linux-kernel-4.4.55.git] / drivers / watchdog / sc1200wdt.c
index 3fb83b0c28c23a58862b55f482ed2e8c3c0003c9..ab6d3f56cbca69e35181284193cb22b48851d706 100644 (file)
@@ -409,8 +409,9 @@ static int __init sc1200wdt_init(void)
 #if defined CONFIG_PNP
        /* now that the user has specified an IO port and we haven't detected
         * any devices, disable pnp support */
+       if (isapnp)
+               pnp_unregister_driver(&scl200wdt_pnp_driver);
        isapnp = 0;
-       pnp_unregister_driver(&scl200wdt_pnp_driver);
 #endif
 
        if (!request_region(io, io_len, SC1200_MODULE_NAME)) {