patch-2.3.99-pre7 linux/drivers/char/zr36120.c
Next file: linux/drivers/i2o/i2o_block.c
Previous file: linux/drivers/char/vt.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Fri Apr 28 23:00:06 2000
- Orig file:
v2.3.99-pre6/linux/drivers/char/zr36120.c
- Orig date:
Tue Jan 4 13:57:16 2000
diff -u --recursive --new-file v2.3.99-pre6/linux/drivers/char/zr36120.c linux/drivers/char/zr36120.c
@@ -1852,17 +1852,14 @@
unsigned char revision;
int zoran_num=0;
- if (!pcibios_present())
- {
- printk(KERN_DEBUG "zoran: PCI-BIOS not present or not accessible!\n");
- return 0;
- }
-
while ((dev = pci_find_device(PCI_VENDOR_ID_ZORAN,PCI_DEVICE_ID_ZORAN_36120, dev)))
{
/* Ok, a ZR36120/ZR36125 found! */
ztv = &zorans[zoran_num];
ztv->dev = dev;
+
+ if (pci_enable_device(dev))
+ return -EIO;
pci_read_config_byte(dev, PCI_CLASS_REVISION, &revision);
printk(KERN_INFO "zoran: Zoran %x (rev %d) ",
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)