Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 117754
b: refs/heads/master
c: 95a84cd
h: refs/heads/master
v: v3
  • Loading branch information
Sergei Shtylyov authored and Bartlomiej Zolnierkiewicz committed Oct 23, 2008
1 parent 82eb4ac commit 20bf4f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 16 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3059ef99a167da6d5d77701fda5b905d985e31af
refs/heads/master: 95a84cd19224e7d41934d261b568dd04bf2bda3e
18 changes: 3 additions & 15 deletions trunk/drivers/ide/sgiioc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,9 +567,7 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev)
unsigned long cmd_base, irqport;
unsigned long bar0, cmd_phys_base, ctl;
void __iomem *virt_base;
struct ide_host *host;
hw_regs_t hw, *hws[] = { &hw, NULL, NULL, NULL };
struct ide_port_info d = sgiioc4_port_info;
int rc;

/* Get the CmdBlk and CtrlBlk Base Registers */
Expand Down Expand Up @@ -604,20 +602,10 @@ sgiioc4_ide_setup_pci_device(struct pci_dev *dev)
/* Initializing chipset IRQ Registers */
writel(0x03, (void __iomem *)(irqport + IOC4_INTR_SET * 4));

host = ide_host_alloc(&d, hws);
if (host == NULL) {
rc = -ENOMEM;
goto err;
}

rc = ide_host_register(host, &d, hws);
if (rc)
goto err_free;
rc = ide_host_add(&sgiioc4_port_info, hws, NULL);
if (!rc)
return 0;

return 0;
err_free:
ide_host_free(host);
err:
release_mem_region(cmd_phys_base, IOC4_CMD_CTL_BLK_SIZE);
req_mem_rgn_err:
iounmap(virt_base);
Expand Down

0 comments on commit 20bf4f7

Please sign in to comment.