···392392 if (io == -1) {393393 printk(KERN_ERR PFX "io parameter must be specified\n");394394 ret = -EINVAL;395395- goto out_clean;395395+ goto out_pnp;396396 }397397398398#if defined CONFIG_PNP···405405 if (!request_region(io, io_len, SC1200_MODULE_NAME)) {406406 printk(KERN_ERR PFX "Unable to register IO port %#x\n", io);407407 ret = -EBUSY;408408- goto out_clean;408408+ goto out_pnp;409409 }410410411411 ret = sc1200wdt_probe();···435435out_io:436436 release_region(io, io_len);437437438438+out_pnp:439439+#if defined CONFIG_PNP440440+ if (isapnp)441441+ pnp_unregister_driver(&scl200wdt_pnp_driver);442442+#endif438443 goto out_clean;439444}440445