Skip to content

Commit

Permalink
crypto: stm32/hash - don't print error on probe deferral
Browse files Browse the repository at this point in the history
Change driver to not print an error message when the device
probe is deferred for a clock resource.

Signed-off-by: Lionel Debieve <lionel.debieve@st.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Lionel Debieve authored and Herbert Xu committed May 8, 2020
1 parent 45dafed commit 79cd691
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions drivers/crypto/stm32/stm32-hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -1464,8 +1464,11 @@ static int stm32_hash_probe(struct platform_device *pdev)

hdev->clk = devm_clk_get(&pdev->dev, NULL);
if (IS_ERR(hdev->clk)) {
dev_err(dev, "failed to get clock for hash (%lu)\n",
PTR_ERR(hdev->clk));
if (PTR_ERR(hdev->clk) != -EPROBE_DEFER) {
dev_err(dev, "failed to get clock for hash (%lu)\n",
PTR_ERR(hdev->clk));
}

return PTR_ERR(hdev->clk);
}

Expand Down

0 comments on commit 79cd691

Please sign in to comment.