0efad99157a6219658d242350311ec8decd7554d
[openwrt/staging/xback.git] /
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
5 -EPROBE_DEFER
6
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
9 normal thing.
10
11 No need to print out an error message in this case.
12
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
17 ---
18 drivers/mtd/parsers/qcomsmempart.c | 3 ++-
19 1 file changed, 2 insertions(+), 1 deletion(-)
20
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);
26 if (IS_ERR(ptable)) {
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);
31 }
32