1 From 26bccc9671ba5e01f7153addbe94e7dc3f677375 Mon Sep 17 00:00:00 2001
2 From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
3 Date: Mon, 3 Jan 2022 03:03:16 +0000
4 Subject: [PATCH 13/14] mtd: parsers: qcom: Don't print error message on
7 Its possible for the main smem driver to not be loaded by the time we come
8 along to parse the smem partition description but, this is a perfectly
11 No need to print out an error message in this case.
13 Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
14 Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
15 Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
16 Link: https://lore.kernel.org/linux-mtd/20220103030316.58301-3-bryan.odonoghue@linaro.org
18 drivers/mtd/parsers/qcomsmempart.c | 3 ++-
19 1 file changed, 2 insertions(+), 1 deletion(-)
21 --- a/drivers/mtd/parsers/qcomsmempart.c
22 +++ b/drivers/mtd/parsers/qcomsmempart.c
23 @@ -75,7 +75,8 @@ static int parse_qcomsmem_part(struct mt
24 pr_debug("Parsing partition table info from SMEM\n");
25 ptable = qcom_smem_get(SMEM_APPS, SMEM_AARM_PARTITION_TABLE, &len);
27 - pr_err("Error reading partition table header\n");
28 + if (PTR_ERR(ptable) != -EPROBE_DEFER)
29 + pr_err("Error reading partition table header\n");
30 return PTR_ERR(ptable);