lkml.org 
[lkml]   [2021]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v12 04/35] soc/tegra: Don't print error message when OPPs not available
    Date
    Previously we assumed that devm_tegra_core_dev_init_opp_table() will
    be used only by drivers that will always have device with OPP table,
    but this is not true anymore. For example now Tegra30 will have OPP table
    for PWM, but Tegra20 not and both use the same driver. Hence let's not
    print the error message about missing OPP table in the common helper,
    we can print it elsewhere.

    Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
    ---
    drivers/soc/tegra/common.c | 4 +---
    1 file changed, 1 insertion(+), 3 deletions(-)

    diff --git a/drivers/soc/tegra/common.c b/drivers/soc/tegra/common.c
    index cd33e99249c3..a42d4f98c078 100644
    --- a/drivers/soc/tegra/common.c
    +++ b/drivers/soc/tegra/common.c
    @@ -111,9 +111,7 @@ int devm_tegra_core_dev_init_opp_table(struct device *dev,
    */
    err = devm_pm_opp_of_add_table(dev);
    if (err) {
    - if (err == -ENODEV)
    - dev_err_once(dev, "OPP table not found, please update device-tree\n");
    - else
    + if (err != -ENODEV)
    dev_err(dev, "failed to add OPP table: %d\n", err);

    return err;
    --
    2.32.0
    \
     
     \ /
      Last update: 2021-09-21 04:37    [W:3.259 / U:0.040 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site