mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-16 04:13:31 +00:00
33 lines
1.3 KiB
Diff
33 lines
1.3 KiB
Diff
From 030e9812dc18de9ce9f1143cc6c84918608befca Mon Sep 17 00:00:00 2001
|
|
From: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
|
|
Date: Mon, 3 Jan 2022 03:03:16 +0000
|
|
Subject: [PATCH 2/2] mtd: parsers: qcom: Don't print error message on
|
|
-EPROBE_DEFER
|
|
|
|
Its possible for the main smem driver to not be loaded by the time we come
|
|
along to parse the smem partition description but, this is a perfectly
|
|
normal thing.
|
|
|
|
No need to print out an error message in this case.
|
|
|
|
Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org>
|
|
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
|
|
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
|
|
Link: https://lore.kernel.org/linux-mtd/20220103030316.58301-3-bryan.odonoghue@linaro.org
|
|
---
|
|
drivers/mtd/parsers/qcomsmempart.c | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
--- a/drivers/mtd/parsers/qcomsmempart.c
|
|
+++ b/drivers/mtd/parsers/qcomsmempart.c
|
|
@@ -75,7 +75,8 @@ static int parse_qcomsmem_part(struct mt
|
|
pr_debug("Parsing partition table info from SMEM\n");
|
|
ptable = qcom_smem_get(SMEM_APPS, SMEM_AARM_PARTITION_TABLE, &len);
|
|
if (IS_ERR(ptable)) {
|
|
- pr_err("Error reading partition table header\n");
|
|
+ if (PTR_ERR(ptable) != -EPROBE_DEFER)
|
|
+ pr_err("Error reading partition table header\n");
|
|
return PTR_ERR(ptable);
|
|
}
|
|
|