RE: [PATCH] clk:Fix divide by 0 error in divider_ro_round_rate_parent

2019-03-29 Thread Nixiaoming
On 3/30/2019 6:42 AM Stephen Boyd wrote: >Quoting nixiaoming (2019-03-29 02:05:24) >> In the function divider_recalc_rate The judgment of the return value of > >Please write divider_recalc_rate() with parenthesis to show it's a >function. > >> _get_div indicates that the return value of _get_div ma

Re: [PATCH] clk:Fix divide by 0 error in divider_ro_round_rate_parent

2019-03-29 Thread Stephen Boyd
Quoting nixiaoming (2019-03-29 02:05:24) > In the function divider_recalc_rate The judgment of the return value of Please write divider_recalc_rate() with parenthesis to show it's a function. > _get_div indicates that the return value of _get_div may be 0. __get_div() > In order to avoid the di

[PATCH] clk:Fix divide by 0 error in divider_ro_round_rate_parent

2019-03-29 Thread nixiaoming
In the function divider_recalc_rate The judgment of the return value of _get_div indicates that the return value of _get_div may be 0. In order to avoid the divide-by-zero error, add check the return value of _get_div in the divider_ro_round_rate_parent Signed-off-by: nixiaoming --- drivers/clk/