diff options
-rw-r--r-- | drivers/mtd/nand/atmel/nand-controller.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/atmel/nand-controller.c b/drivers/mtd/nand/atmel/nand-controller.c index 80e2459f92f8..c11f358c6df6 100644 --- a/drivers/mtd/nand/atmel/nand-controller.c +++ b/drivers/mtd/nand/atmel/nand-controller.c | |||
@@ -1685,7 +1685,7 @@ static int atmel_nand_controller_init(struct atmel_nand_controller *nc, | |||
1685 | nc->smc = syscon_node_to_regmap(np); | 1685 | nc->smc = syscon_node_to_regmap(np); |
1686 | of_node_put(np); | 1686 | of_node_put(np); |
1687 | if (IS_ERR(nc->smc)) { | 1687 | if (IS_ERR(nc->smc)) { |
1688 | ret = IS_ERR(nc->smc); | 1688 | ret = PTR_ERR(nc->smc); |
1689 | dev_err(dev, "Could not get SMC regmap (err = %d)\n", ret); | 1689 | dev_err(dev, "Could not get SMC regmap (err = %d)\n", ret); |
1690 | return ret; | 1690 | return ret; |
1691 | } | 1691 | } |
@@ -1718,7 +1718,7 @@ atmel_smc_nand_controller_init(struct atmel_smc_nand_controller *nc) | |||
1718 | nc->matrix = syscon_node_to_regmap(np); | 1718 | nc->matrix = syscon_node_to_regmap(np); |
1719 | of_node_put(np); | 1719 | of_node_put(np); |
1720 | if (IS_ERR(nc->matrix)) { | 1720 | if (IS_ERR(nc->matrix)) { |
1721 | ret = IS_ERR(nc->matrix); | 1721 | ret = PTR_ERR(nc->matrix); |
1722 | dev_err(dev, "Could not get Matrix regmap (err = %d)\n", ret); | 1722 | dev_err(dev, "Could not get Matrix regmap (err = %d)\n", ret); |
1723 | return ret; | 1723 | return ret; |
1724 | } | 1724 | } |