Skip to content

Commit

Permalink
it821x/jmicron: fix return value of {it821x,jmicron}_init_one()
Browse files Browse the repository at this point in the history
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Nov 13, 2007
1 parent 34c69b6 commit 24ffbd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions drivers/ide/pci/it821x.c
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = {
Expand Down
3 changes: 1 addition & 2 deletions drivers/ide/pci/jmicron.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24ffbd6

Please sign in to comment.