it821x/jmicron: fix return value of {it821x,jmicron}_init_one()
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 13 Nov 2007 21:09:16 +0000 (22:09 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 13 Nov 2007 21:09:16 +0000 (22:09 +0100)
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/pci/it821x.c
drivers/ide/pci/jmicron.c

index 5c99754353194478890a3ae073bddcdd509e07f5..99b7d763b6c7a445445e14e038716bbb3d8e9d57 100644 (file)
@@ -653,8 +653,7 @@ static const struct ide_port_info it821x_chipsets[] __devinitdata = {
 
 static int __devinit it821x_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 {
-       ide_setup_pci_device(dev, &it821x_chipsets[id->driver_data]);
-       return 0;
+       return ide_setup_pci_device(dev, &it821x_chipsets[id->driver_data]);
 }
 
 static const struct pci_device_id it821x_pci_tbl[] = {
index bdf64d99770805313647814c848cedc5d43ff600..0083eaf89c773ca61760b4a180d870e77f9fa8e4 100644 (file)
@@ -139,8 +139,7 @@ static const struct ide_port_info jmicron_chipset __devinitdata = {
 
 static int __devinit jmicron_init_one(struct pci_dev *dev, const struct pci_device_id *id)
 {
-       ide_setup_pci_device(dev, &jmicron_chipset);
-       return 0;
+       return ide_setup_pci_device(dev, &jmicron_chipset);
 }
 
 /* All JMB PATA controllers have and will continue to have the same