We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30e9672 commit 99df45cCopy full SHA for 99df45c
drivers/net/ethernet/sun/sunhme.c
@@ -2896,8 +2896,8 @@ static int happy_meal_pci_probe(struct pci_dev *pdev,
2896
2897
hpreg_res = devm_request_region(&pdev->dev, pci_resource_start(pdev, 0),
2898
pci_resource_len(pdev, 0), DRV_NAME);
2899
- if (IS_ERR(hpreg_res)) {
2900
- err = PTR_ERR(hpreg_res);
+ if (!hpreg_res) {
+ err = -EBUSY;
2901
dev_err(&pdev->dev, "Cannot obtain PCI resources, aborting.\n");
2902
goto err_out_clear_quattro;
2903
}
0 commit comments