set mite_phys_addr to zero after releasing io regions
authorFrank Mori Hess <fmhess@speakeasy.net>
Tue, 18 Jul 2006 20:51:54 +0000 (20:51 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Tue, 18 Jul 2006 20:51:54 +0000 (20:51 +0000)
comedi/drivers/mite.c

index fed3009b2485265098dd3c00b69acbfc7d127b7c..500e6484dd3c289eb82f948ad647f541319bfadb 100644 (file)
@@ -201,6 +201,7 @@ void mite_unsetup(struct mite_struct *mite)
        if( mite->mite_phys_addr ){
                pci_release_regions( mite->pcidev );
                pci_disable_device( mite->pcidev );
+               mite->mite_phys_addr = 0;
        }
 
        mite->used = 0;