diff options
Diffstat (limited to 'drivers/net/ixgbe')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index 7ad2993dc581..cb371a8c24a7 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -367,7 +367,7 @@ static int __ixgbe_notify_dca(struct device *dev, void *data) | |||
367 | /* Always use CB2 mode, difference is masked | 367 | /* Always use CB2 mode, difference is masked |
368 | * in the CB driver. */ | 368 | * in the CB driver. */ |
369 | IXGBE_WRITE_REG(&adapter->hw, IXGBE_DCA_CTRL, 2); | 369 | IXGBE_WRITE_REG(&adapter->hw, IXGBE_DCA_CTRL, 2); |
370 | if (dca_add_requester(dev) == IXGBE_SUCCESS) { | 370 | if (dca_add_requester(dev) == 0) { |
371 | ixgbe_setup_dca(adapter); | 371 | ixgbe_setup_dca(adapter); |
372 | break; | 372 | break; |
373 | } | 373 | } |
@@ -381,7 +381,7 @@ static int __ixgbe_notify_dca(struct device *dev, void *data) | |||
381 | break; | 381 | break; |
382 | } | 382 | } |
383 | 383 | ||
384 | return IXGBE_SUCCESS; | 384 | return 0; |
385 | } | 385 | } |
386 | 386 | ||
387 | #endif /* CONFIG_DCA */ | 387 | #endif /* CONFIG_DCA */ |
@@ -3605,7 +3605,7 @@ static int __devinit ixgbe_probe(struct pci_dev *pdev, | |||
3605 | goto err_register; | 3605 | goto err_register; |
3606 | 3606 | ||
3607 | #ifdef CONFIG_DCA | 3607 | #ifdef CONFIG_DCA |
3608 | if (dca_add_requester(&pdev->dev) == IXGBE_SUCCESS) { | 3608 | if (dca_add_requester(&pdev->dev) == 0) { |
3609 | adapter->flags |= IXGBE_FLAG_DCA_ENABLED; | 3609 | adapter->flags |= IXGBE_FLAG_DCA_ENABLED; |
3610 | /* always use CB2 mode, difference is masked | 3610 | /* always use CB2 mode, difference is masked |
3611 | * in the CB driver */ | 3611 | * in the CB driver */ |