mirror of https://gitee.com/openkylin/linux.git
iio: adc: stm32-adc: don't print an error on probe deferral
Do not print an error trace when deferring probe for some resource. Signed-off-by: Etienne Carriere <etienne.carriere@st.com> Signed-off-by: Fabrice Gasnier <fabrice.gasnier@st.com> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
parent
49576627b3
commit
622b4339f9
|
@ -688,7 +688,8 @@ static int stm32_adc_probe(struct platform_device *pdev)
|
||||||
priv->vref = devm_regulator_get(&pdev->dev, "vref");
|
priv->vref = devm_regulator_get(&pdev->dev, "vref");
|
||||||
if (IS_ERR(priv->vref)) {
|
if (IS_ERR(priv->vref)) {
|
||||||
ret = PTR_ERR(priv->vref);
|
ret = PTR_ERR(priv->vref);
|
||||||
dev_err(&pdev->dev, "vref get failed, %d\n", ret);
|
if (ret != -EPROBE_DEFER)
|
||||||
|
dev_err(&pdev->dev, "vref get failed, %d\n", ret);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -696,7 +697,8 @@ static int stm32_adc_probe(struct platform_device *pdev)
|
||||||
if (IS_ERR(priv->aclk)) {
|
if (IS_ERR(priv->aclk)) {
|
||||||
ret = PTR_ERR(priv->aclk);
|
ret = PTR_ERR(priv->aclk);
|
||||||
if (ret != -ENOENT) {
|
if (ret != -ENOENT) {
|
||||||
dev_err(&pdev->dev, "Can't get 'adc' clock\n");
|
if (ret != -EPROBE_DEFER)
|
||||||
|
dev_err(&pdev->dev, "Can't get 'adc' clock\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
priv->aclk = NULL;
|
priv->aclk = NULL;
|
||||||
|
@ -706,7 +708,8 @@ static int stm32_adc_probe(struct platform_device *pdev)
|
||||||
if (IS_ERR(priv->bclk)) {
|
if (IS_ERR(priv->bclk)) {
|
||||||
ret = PTR_ERR(priv->bclk);
|
ret = PTR_ERR(priv->bclk);
|
||||||
if (ret != -ENOENT) {
|
if (ret != -ENOENT) {
|
||||||
dev_err(&pdev->dev, "Can't get 'bus' clock\n");
|
if (ret != -EPROBE_DEFER)
|
||||||
|
dev_err(&pdev->dev, "Can't get 'bus' clock\n");
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
priv->bclk = NULL;
|
priv->bclk = NULL;
|
||||||
|
|
Loading…
Reference in New Issue