|
@@ -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,
|
|
IF_INIT(printk("dev_id = 0x%x iadev->LineRate = %d \n", (u32)dev,
|
|
iadev->LineRate);)
|
|
iadev->LineRate);)
|
|
|
|
|
|
|
|
+ pci_set_drvdata(pdev, dev);
|
|
|
|
+
|
|
ia_dev[iadev_count] = iadev;
|
|
ia_dev[iadev_count] = iadev;
|
|
_ia_dev[iadev_count] = dev;
|
|
_ia_dev[iadev_count] = dev;
|
|
iadev_count++;
|
|
iadev_count++;
|
|
@@ -3219,8 +3221,6 @@ static int __devinit ia_init_one(struct pci_dev *pdev,
|
|
iadev->next_board = ia_boards;
|
|
iadev->next_board = ia_boards;
|
|
ia_boards = dev;
|
|
ia_boards = dev;
|
|
|
|
|
|
- pci_set_drvdata(pdev, dev);
|
|
|
|
-
|
|
|
|
return 0;
|
|
return 0;
|
|
|
|
|
|
err_out_deregister_dev:
|
|
err_out_deregister_dev:
|