moved pci_enable_device to get rid of statement with no effect' compiler warning
authorFrank Mori Hess <fmhess@speakeasy.net>
Fri, 20 Jul 2001 15:24:25 +0000 (15:24 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Fri, 20 Jul 2001 15:24:25 +0000 (15:24 +0000)
comedi/drivers/mite.c

index ed434af9cabea0ad55016e3f68fd3b8ad6ffce78..86abb68cb3ef4af41bacd19408f9c042d7f61fa1 100644 (file)
@@ -146,11 +146,11 @@ int mite_setup(struct mite_struct *mite)
 #ifdef PCI_SUPPORT_VER1
        pcibios_read_config_dword(mite->pci_bus,mite->pci_device_fn,PCI_BASE_ADDRESS_0,&addr);
 #else
-       pci_enable_device(mite->pcidev);
 
 #if LINUX_VERSION_CODE < 0x020300
        addr=mite->pcidev->base_address[0];
 #else
+       pci_enable_device(mite->pcidev);
        addr=mite->pcidev->resource[0].start;
 #endif
 #endif