PM / OPP: Rename opp init/free table routines
free-table routines are opposite of init-table ones, and must be named to make that clear. Opposite of 'init' is 'exit', but those doesn't suit really well. Replace 'init' with 'add' and 'free' with 'remove'. Reported-by: Pavel Machek <pavel@ucw.cz> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Acked-by: Shawn Guo <shawnguo@kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
This commit is contained in:

committato da
Rafael J. Wysocki

parent
1840995c52
commit
f0489a5ef4
@@ -350,7 +350,7 @@ static void __init imx6q_opp_init(void)
|
||||
return;
|
||||
}
|
||||
|
||||
if (of_init_opp_table(cpu_dev)) {
|
||||
if (of_add_opp_table(cpu_dev)) {
|
||||
pr_warn("failed to init OPP table\n");
|
||||
goto put_node;
|
||||
}
|
||||
|
Fai riferimento in un nuovo problema
Block a user