diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2008-06-16 17:16:04 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-16 17:16:04 -0700 |
commit | c0ed0b60f2c36acfebb53384a3b24d13b3a09309 (patch) | |
tree | cfdc26e4e218e11898c4743fcc7108470daf5bf1 /drivers/atm/iphase.c | |
parent | 27141666b69f535a4d63d7bc6d9e84ee5032f82a (diff) | |
download | linux-c0ed0b60f2c36acfebb53384a3b24d13b3a09309.tar.bz2 |
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>
Diffstat (limited to 'drivers/atm/iphase.c')
-rw-r--r-- | drivers/atm/iphase.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/iphase.c b/drivers/atm/iphase.c index 5c28ca7380ff..800c09e128ee 100644 --- a/drivers/atm/iphase.c +++ b/drivers/atm/iphase.c @@ -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: |