Subject: [PATCH][ATM] iphase: set drvdata before enabling interrupts

From: "Jorge Boncompte [DTI2]" <[email-masked]>
Date: Thu, 05 Jun 2008 18:14:04 +0200

Signed-off-by: Jorge Boncompte [DTI2] <[email-masked]>
---
  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 a51b7cb..92fce28 100644
--- a/drivers/atm/iphase.c
+++ b/drivers/atm/iphase.c
@@ -3197,6 +3197,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++;
@@ -3213,8 +3215,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:
--