Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44520
b: refs/heads/master
c: 73d1dd9
h: refs/heads/master
v: v3
  • Loading branch information
Sergei Shtylyov authored and Linus Torvalds committed Dec 13, 2006
1 parent 4d8bb8e commit 5a5c010
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: 33b18a602525198ab8892789dab6839f325407f8
refs/heads/master: 73d1dd93c462b52512685fe118159eafc7eb9f7e
11 changes: 8 additions & 3 deletions trunk/drivers/ide/pci/hpt366.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,8 @@
* table in which the mode lookup is done
* - fix the hotswap code: it caused RESET- to glitch when tristating the bus,
* and for HPT36x the obsolete HDIO_TRISTATE_HWIF handler was called instead
* - pass to init_chipset() handlers a copy of the IDE PCI device structure as
* they tamper with its fields
* <source@mvista.com>
*
*/
Expand Down Expand Up @@ -1564,13 +1566,16 @@ static ide_pci_device_t hpt366_chipsets[] __devinitdata = {
*
* Called when the PCI registration layer (or the IDE initialization)
* finds a device matching our IDE device tables.
*
* NOTE: since we'll have to modify some fields of the ide_pci_device_t
* structure depending on the chip's revision, we'd better pass a local
* copy down the call chain...
*/

static int __devinit hpt366_init_one(struct pci_dev *dev, const struct pci_device_id *id)
{
ide_pci_device_t *d = &hpt366_chipsets[id->driver_data];
ide_pci_device_t d = hpt366_chipsets[id->driver_data];

return d->init_setup(dev, d);
return d.init_setup(dev, &d);
}

static struct pci_device_id hpt366_pci_tbl[] = {
Expand Down

0 comments on commit 5a5c010

Please sign in to comment.