From: Frank Mori Hess Date: Fri, 20 Jul 2001 15:24:25 +0000 (+0000) Subject: moved pci_enable_device to get rid of statement with no effect' compiler warning X-Git-Tag: r0_7_60~38 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2bae4df90898a12a3d3c58d5e5dfbc72c5753ab9;p=comedi.git moved pci_enable_device to get rid of statement with no effect' compiler warning --- diff --git a/comedi/drivers/mite.c b/comedi/drivers/mite.c index ed434af9..86abb68c 100644 --- a/comedi/drivers/mite.c +++ b/comedi/drivers/mite.c @@ -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