diff options
Diffstat (limited to 'drivers/char/zr36120.c')
-rw-r--r-- | drivers/char/zr36120.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/char/zr36120.c b/drivers/char/zr36120.c index 692824133..a46c3d056 100644 --- a/drivers/char/zr36120.c +++ b/drivers/char/zr36120.c @@ -1852,18 +1852,15 @@ int __init find_zoran(void) 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) ", dev->device, revision); |