mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 16:07:17 -04:00
gpio: merrifield: Use dev_err_probe()
Improve error handling in the probe() function with dev_err_probe(). Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
This commit is contained in:
@@ -78,10 +78,8 @@ static int mrfld_gpio_probe(struct pci_dev *pdev, const struct pci_device_id *id
|
||||
return retval;
|
||||
|
||||
retval = pcim_iomap_regions(pdev, BIT(1) | BIT(0), pci_name(pdev));
|
||||
if (retval) {
|
||||
dev_err(&pdev->dev, "I/O memory mapping error\n");
|
||||
return retval;
|
||||
}
|
||||
if (retval)
|
||||
return dev_err_probe(dev, retval, "I/O memory mapping error\n");
|
||||
|
||||
base = pcim_iomap_table(pdev)[1];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user