diff --git a/[refs] b/[refs] index cc149e1cd827..d4c19c188451 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: d7b5a23fc6e85456ed00a997ff2d925fb3f0dc52 +refs/heads/master: 11f6400e92aa3fc0aa936f20f7cc363674a4e3c4 diff --git a/trunk/drivers/ata/pata_via.c b/trunk/drivers/ata/pata_via.c index d4840748fb5c..2fea6cbe7755 100644 --- a/trunk/drivers/ata/pata_via.c +++ b/trunk/drivers/ata/pata_via.c @@ -464,11 +464,12 @@ static int via_init_one(struct pci_dev *pdev, const struct pci_device_id *id) } pci_dev_put(isa); - /* 0x40 low bits indicate enabled channels */ - pci_read_config_byte(pdev, 0x40 , &enable); - enable &= 3; - if (enable == 0) { - return -ENODEV; + if (!(config->flags & VIA_NO_ENABLES)) { + /* 0x40 low bits indicate enabled channels */ + pci_read_config_byte(pdev, 0x40 , &enable); + enable &= 3; + if (enable == 0) + return -ENODEV; } /* Initialise the FIFO for the enabled channels. */