[PATCH] cs5520: fix return value of cs5520_init_one() From: Amit Gud Patch follows from the suggestions by AC and Felipe W Damasio for fixing the return codes from IDE drivers. Signed-off-by: Amit Gud Signed-off-by: Domen Puncer Signed-off-by: Alexey Dobriyan Index: linux-kj/drivers/ide/pci/cs5520.c =================================================================== --- linux-kj.orig/drivers/ide/pci/cs5520.c 2005-09-21 01:19:07.000000000 +0400 +++ linux-kj/drivers/ide/pci/cs5520.c 2005-09-21 01:21:41.000000000 +0400 @@ -225,7 +225,7 @@ static int __devinit cs5520_init_one(str if(pci_enable_device_bars(dev, 1<<2)) { printk(KERN_WARNING "%s: Unable to enable 55x0.\n", d->name); - return 1; + return -ENODEV; } pci_set_master(dev); if (pci_set_dma_mask(dev, DMA_32BIT_MASK)) {