Commit 4c699b83 authored by Bartlomiej Zolnierkiewicz's avatar Bartlomiej Zolnierkiewicz Committed by Linus Torvalds

[PATCH] ide: check the return value of pci_set_dma_mask() in cs5520.c

From: Arjan van de Ven <arjanv@redhat.com>
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@elka.pw.edu.pl>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent b4a93dc0
...@@ -290,7 +290,10 @@ static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_devic ...@@ -290,7 +290,10 @@ static int __devinit cs5520_init_one(struct pci_dev *dev, const struct pci_devic
return 1; return 1;
} }
pci_set_master(dev); pci_set_master(dev);
pci_set_dma_mask(dev, 0xFFFFFFFF); if (pci_set_dma_mask(dev, 0xFFFFFFFF)) {
printk(KERN_WARNING "cs5520: No suitable DMA available.\n");
return -ENODEV;
}
init_chipset_cs5520(dev, d->name); init_chipset_cs5520(dev, d->name);
index.all = 0xf0f0; index.all = 0xf0f0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment