Commit af83a67c authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Brian Norris

mtd: denali_pci: switch to dev_err()

It is better to have device name prefixed the actual error message.
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent add243d5
No related merge requests found
...@@ -41,7 +41,7 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) ...@@ -41,7 +41,7 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
ret = pcim_enable_device(dev); ret = pcim_enable_device(dev);
if (ret) { if (ret) {
pr_err("Spectra: pci_enable_device failed.\n"); dev_err(&dev->dev, "Spectra: pci_enable_device failed.\n");
return ret; return ret;
} }
...@@ -69,19 +69,19 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) ...@@ -69,19 +69,19 @@ static int denali_pci_probe(struct pci_dev *dev, const struct pci_device_id *id)
ret = pci_request_regions(dev, DENALI_NAND_NAME); ret = pci_request_regions(dev, DENALI_NAND_NAME);
if (ret) { if (ret) {
pr_err("Spectra: Unable to request memory regions\n"); dev_err(&dev->dev, "Spectra: Unable to request memory regions\n");
return ret; return ret;
} }
denali->flash_reg = ioremap_nocache(csr_base, csr_len); denali->flash_reg = ioremap_nocache(csr_base, csr_len);
if (!denali->flash_reg) { if (!denali->flash_reg) {
pr_err("Spectra: Unable to remap memory region\n"); dev_err(&dev->dev, "Spectra: Unable to remap memory region\n");
return -ENOMEM; return -ENOMEM;
} }
denali->flash_mem = ioremap_nocache(mem_base, mem_len); denali->flash_mem = ioremap_nocache(mem_base, mem_len);
if (!denali->flash_mem) { if (!denali->flash_mem) {
pr_err("Spectra: ioremap_nocache failed!"); dev_err(&dev->dev, "Spectra: ioremap_nocache failed!");
ret = -ENOMEM; ret = -ENOMEM;
goto failed_remap_reg; goto failed_remap_reg;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment