Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] cs5520: fix return value of cs5520_init_one()

From: Amit Gud <amitg@calsoftinc.com>

Patch follows from the suggestions by AC and Felipe W Damasio for fixing the
return codes from IDE drivers.

[ bart: fix coding style while at it ]

Signed-off-by: Amit Gud <gud@eth.net>
Signed-off-by: Domen Puncer <domen@coderock.org>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>

authored by

Amit Gud and committed by
Bartlomiej Zolnierkiewicz
1e39dead bf4c796d

+2 -3
+2 -3
drivers/ide/pci/cs5520.c
··· 222 222 223 223 /* We must not grab the entire device, it has 'ISA' space in its 224 224 BARS too and we will freak out other bits of the kernel */ 225 - if(pci_enable_device_bars(dev, 1<<2)) 226 - { 225 + if (pci_enable_device_bars(dev, 1<<2)) { 227 226 printk(KERN_WARNING "%s: Unable to enable 55x0.\n", d->name); 228 - return 1; 227 + return -ENODEV; 229 228 } 230 229 pci_set_master(dev); 231 230 if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) {