]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit626feecbd84e423d4f6e58e7cb69581d982930a5
tree17f2a805e387121fc848152cc7f50dfb86868519
parente417773f9c88d48c38bc8c33314f05fac1539c88
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