Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96095
b: refs/heads/master
c: 36f674d
h: refs/heads/master
i:
  96093: d097342
  96091: 3af49ce
  96087: a8fa8b6
  96079: 434a6bf
  96063: df9cb2c
v: v3
  • Loading branch information
Tejun Heo authored and Jeff Garzik committed May 6, 2008
1 parent f80796f commit ac6e388
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 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: c46938ccfe35a58a0873715ee4c26fc9eb8d87b3
refs/heads/master: 36f674d9a65264d3826ca7300bed441e22a624b2
18 changes: 5 additions & 13 deletions trunk/drivers/ata/sata_inic162x.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ enum {
};

struct inic_host_priv {
u16 cached_hctl;
u16 cached_hctl;
};

struct inic_port_priv {
u8 dfl_prdctl;
u8 cached_prdctl;
u8 cached_pirq_mask;
u8 dfl_prdctl;
u8 cached_prdctl;
u8 cached_pirq_mask;
};

static struct scsi_host_template inic_sht = {
Expand Down Expand Up @@ -185,12 +185,10 @@ static int inic_scr_read(struct ata_port *ap, unsigned sc_reg, u32 *val)
static int inic_scr_write(struct ata_port *ap, unsigned sc_reg, u32 val)
{
void __iomem *scr_addr = ap->ioaddr.scr_addr;
void __iomem *addr;

if (unlikely(sc_reg >= ARRAY_SIZE(scr_map)))
return -EINVAL;

addr = scr_addr + scr_map[sc_reg] * 4;
writel(val, scr_addr + scr_map[sc_reg] * 4);
return 0;
}
Expand Down Expand Up @@ -367,8 +365,6 @@ static void inic_freeze(struct ata_port *ap)

ap->ops->sff_check_status(ap);
writeb(0xff, port_base + PORT_IRQ_STAT);

readb(port_base + PORT_IRQ_STAT); /* flush */
}

static void inic_thaw(struct ata_port *ap)
Expand All @@ -379,8 +375,6 @@ static void inic_thaw(struct ata_port *ap)
writeb(0xff, port_base + PORT_IRQ_STAT);

__inic_set_pirq_mask(ap, PIRQ_MASK_OTHER);

readb(port_base + PORT_IRQ_STAT); /* flush */
}

/*
Expand Down Expand Up @@ -506,10 +500,8 @@ static int inic_port_start(struct ata_port *ap)

/* Alloc resources */
rc = ata_port_start(ap);
if (rc) {
kfree(pp);
if (rc)
return rc;
}

init_port(ap);

Expand Down

0 comments on commit ac6e388

Please sign in to comment.