summaryrefslogtreecommitdiffstats
path: root/drivers/mtd/spi-nor/hisi-sfc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/spi-nor/hisi-sfc.c')
-rw-r--r--drivers/mtd/spi-nor/hisi-sfc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/spi-nor/hisi-sfc.c b/drivers/mtd/spi-nor/hisi-sfc.c
index dea43ea3eea3..6dac9dd8bf42 100644
--- a/drivers/mtd/spi-nor/hisi-sfc.c
+++ b/drivers/mtd/spi-nor/hisi-sfc.c
@@ -401,6 +401,7 @@ static int hisi_spi_nor_register_all(struct hifmc_host *host)
if (host->num_chip == HIFMC_MAX_CHIP_NUM) {
dev_warn(dev, "Flash device number exceeds the maximum chipselect number\n");
+ of_node_put(np);
break;
}
}