clk: add CLK_DIVIDER_PROHIBIT_ZERO to prohibit value 0 of register.
authorSunny Luo <sunny.luo@amlogic.com>
Thu, 5 Jul 2018 07:32:32 +0000 (15:32 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Fri, 6 Jul 2018 05:51:45 +0000 (22:51 -0700)
commit157284b91695ef8fa3cb7c15eb8961cec982b28b
treef1d1db542a52207e2a79fc03176e258c5529794a
parentfbc8bd75e67b7fad09ca6a5392996ab99a9d66fe
clk: add CLK_DIVIDER_PROHIBIT_ZERO to prohibit value 0 of register.

PD#164751: clk: add CLK_DIVIDER_PROHIBIT_ZERO to prohibit value 0 of
register.

There is a possible error when spicc clk divider register value is 0.

It's easy and effective to resolve this problem with this flag.

Change-Id: I046f3ee6e35b98211a13be3390b847a5a75ec3c8
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
drivers/clk/clk-divider.c
include/linux/clk-provider.h