diff options
author | Jorge Boncompte [DTI2] <jorge@dti2.net> | 2008-06-16 20:16:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-06-16 20:16:04 -0400 |
commit | c0ed0b60f2c36acfebb53384a3b24d13b3a09309 (patch) | |
tree | cfdc26e4e218e11898c4743fcc7108470daf5bf1 /drivers/atm | |
parent | 27141666b69f535a4d63d7bc6d9e84ee5032f82a (diff) |
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')
-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, | |||
3198 | IF_INIT(printk("dev_id = 0x%x iadev->LineRate = %d \n", (u32)dev, | 3198 | IF_INIT(printk("dev_id = 0x%x iadev->LineRate = %d \n", (u32)dev, |
3199 | iadev->LineRate);) | 3199 | iadev->LineRate);) |
3200 | 3200 | ||
3201 | pci_set_drvdata(pdev, dev); | ||
3202 | |||
3201 | ia_dev[iadev_count] = iadev; | 3203 | ia_dev[iadev_count] = iadev; |
3202 | _ia_dev[iadev_count] = dev; | 3204 | _ia_dev[iadev_count] = dev; |
3203 | iadev_count++; | 3205 | iadev_count++; |
@@ -3219,8 +3221,6 @@ static int __devinit ia_init_one(struct pci_dev *pdev, | |||
3219 | iadev->next_board = ia_boards; | 3221 | iadev->next_board = ia_boards; |
3220 | ia_boards = dev; | 3222 | ia_boards = dev; |
3221 | 3223 | ||
3222 | pci_set_drvdata(pdev, dev); | ||
3223 | |||
3224 | return 0; | 3224 | return 0; |
3225 | 3225 | ||
3226 | err_out_deregister_dev: | 3226 | err_out_deregister_dev: |