pwm: mediatek: Remove the has_clks field
authorSam Shih <sam.shih@mediatek.com>
Thu, 19 Sep 2019 22:49:03 +0000 (06:49 +0800)
committerThierry Reding <thierry.reding@gmail.com>
Wed, 25 Sep 2019 07:48:58 +0000 (09:48 +0200)
commit61aa258ab1a50b834267f5df6cabef0d10f8955a
tree17f2a805e387121fc848152cc7f50dfb86868519
parente6c7c258f035ffec9d8a808c1bc34b6a5beae0ef
pwm: mediatek: Remove the has_clks field

We can use fixed clocks to repair mt7628 PWM during configure from
userspace. The SoC is legacy MIPS and has no complex clock tree. Because
we can get the clock frequency for period calculation from fixed clocks
specified in DT, we can remove the has_clock field, and directly use
devm_clk_get() and clk_get_rate().

Signed-off-by: Ryder Lee <ryder.lee@mediatek.com>
Signed-off-by: Sam Shih <sam.shih@mediatek.com>
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-mediatek.c