diff options
author | Bryan O'Donoghue <bryan.odonoghue@linaro.org> | 2022-01-03 03:03:16 +0000 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2022-01-25 10:31:44 +0100 |
commit | 079e6bdb2b1cc1da8b5c602229db782732668ae7 (patch) | |
tree | 2a26f0b0b01472c5e77cb3667805c83de166e124 /drivers/mtd/parsers | |
parent | 5c23b3f965bc9ee696bf2ed4bdc54d339dd9a455 (diff) |
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
Diffstat (limited to 'drivers/mtd/parsers')
-rw-r--r-- | drivers/mtd/parsers/qcomsmempart.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/parsers/qcomsmempart.c b/drivers/mtd/parsers/qcomsmempart.c index 06a818cd2433..b2a57fe8479f 100644 --- a/drivers/mtd/parsers/qcomsmempart.c +++ b/drivers/mtd/parsers/qcomsmempart.c @@ -75,7 +75,8 @@ static int parse_qcomsmem_part(struct mtd_info *mtd, 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); } |