iphase: set drvdata before enabling interrupts
Subsystems (3)
PATCH 1/1 iphase: set drvdata before enabling interrupts
Signed-off-by Jorge Boncompte [DTI2] <[email protected]>
--- drivers/atm/iphase.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/atm/iphase.c +2 -2
@@ -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:
Quoted 2 lines · In message <[email protected]>,"Jorge Boncompte [DTI2]" writes:
Signed-off-by Jorge Boncompte [DTI2] <[email protected]>
looks good. i will submit to davem on the next batch of atm patches.