mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
atm: [iphase] set drvdata before enabling interrupts
Signed-off-by: Jorge Boncompte [DTI2] <jorge@dti2.net> Signed-off-by: Chas Williams <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
27141666b6
commit
c0ed0b60f2
1 changed files with 2 additions and 2 deletions
|
@ -3198,6 +3198,8 @@ static int __devinit ia_init_one(struct pci_dev *pdev,
|
|||
IF_INIT(printk("dev_id = 0x%x iadev->LineRate = %d \n", (u32)dev,
|
||||
iadev->LineRate);)
|
||||
|
||||
pci_set_drvdata(pdev, dev);
|
||||
|
||||
ia_dev[iadev_count] = iadev;
|
||||
_ia_dev[iadev_count] = dev;
|
||||
iadev_count++;
|
||||
|
@ -3219,8 +3221,6 @@ static int __devinit ia_init_one(struct pci_dev *pdev,
|
|||
iadev->next_board = ia_boards;
|
||||
ia_boards = dev;
|
||||
|
||||
pci_set_drvdata(pdev, dev);
|
||||
|
||||
return 0;
|
||||
|
||||
err_out_deregister_dev:
|
||||
|
|
Loading…
Reference in a new issue