Skip to content

Commit 079e6bd

Browse files
0xB0Dmiquelraynal
authored andcommitted
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
1 parent 5c23b3f commit 079e6bd

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/mtd/parsers/qcomsmempart.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ static int parse_qcomsmem_part(struct mtd_info *mtd,
7575
pr_debug("Parsing partition table info from SMEM\n");
7676
ptable = qcom_smem_get(SMEM_APPS, SMEM_AARM_PARTITION_TABLE, &len);
7777
if (IS_ERR(ptable)) {
78-
pr_err("Error reading partition table header\n");
78+
if (PTR_ERR(ptable) != -EPROBE_DEFER)
79+
pr_err("Error reading partition table header\n");
7980
return PTR_ERR(ptable);
8081
}
8182

0 commit comments

Comments
 (0)