aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi-fsl-espi.c4
-rw-r--r--drivers/spi/spi-fsl-spi.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-fsl-espi.c b/drivers/spi/spi-fsl-espi.c
index db82c872c0f9..c27124a5ec8e 100644
--- a/drivers/spi/spi-fsl-espi.c
+++ b/drivers/spi/spi-fsl-espi.c
@@ -674,8 +674,8 @@ static struct spi_master * fsl_espi_probe(struct device *dev,
674 mpc8xxx_spi = spi_master_get_devdata(master); 674 mpc8xxx_spi = spi_master_get_devdata(master);
675 675
676 mpc8xxx_spi->reg_base = devm_ioremap_resource(dev, mem); 676 mpc8xxx_spi->reg_base = devm_ioremap_resource(dev, mem);
677 if (!mpc8xxx_spi->reg_base) { 677 if (IS_ERR(mpc8xxx_spi->reg_base)) {
678 ret = -ENOMEM; 678 ret = PTR_ERR(mpc8xxx_spi->reg_base);
679 goto err_probe; 679 goto err_probe;
680 } 680 }
681 681
diff --git a/drivers/spi/spi-fsl-spi.c b/drivers/spi/spi-fsl-spi.c
index 17a9a879dcce..8b290d9d7935 100644
--- a/drivers/spi/spi-fsl-spi.c
+++ b/drivers/spi/spi-fsl-spi.c
@@ -633,8 +633,8 @@ static struct spi_master * fsl_spi_probe(struct device *dev,
633 goto err_cpm_init; 633 goto err_cpm_init;
634 634
635 mpc8xxx_spi->reg_base = devm_ioremap_resource(dev, mem); 635 mpc8xxx_spi->reg_base = devm_ioremap_resource(dev, mem);
636 if (mpc8xxx_spi->reg_base == NULL) { 636 if (IS_ERR(mpc8xxx_spi->reg_base)) {
637 ret = -ENOMEM; 637 ret = PTR_ERR(mpc8xxx_spi->reg_base);
638 goto err_probe; 638 goto err_probe;
639 } 639 }
640 640