Skip to content

Commit

Permalink
atm: [iphase] set drvdata before enabling interrupts
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Boncompte [DTI2] <[email protected]>
Signed-off-by: Chas Williams <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
Jorge Boncompte [DTI2] authored and davem330 committed Jun 17, 2008
1 parent 2714166 commit c0ed0b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/atm/iphase.c
Original file line number Diff line number Diff line change
Expand Up @@ -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++;
Expand All @@ -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:
Expand Down

0 comments on commit c0ed0b6

Please sign in to comment.