aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/clk/mediatek/clk-mtk.c
Commit message (Collapse)AuthorAge
* clk: mediatek: remove __init from clk registration functionsJames Liao2016-08-18
| | | | | | | | | Remove __init from functions that will be used by init functions that support probe deferral. Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Signed-off-by: Erin Lo <erin.lo@mediatek.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
* clk: mediatek: Remove CLK_IS_ROOTStephen Boyd2016-03-02
| | | | | | | This flag is a no-op now. Remove usage of the flag. Acked-by: James Liao <jamesjj.liao@mediatek.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
* clk: mediatek: Fix memory leak on clock init failJames Liao2016-01-29
| | | | | | | | | | | mtk_clk_register_composite() may leak memory due to some error handling path don't free all allocated memory. This patch free all pointers that may allocate memory before error return. And it's safe because kfree() can handle NULL pointers. Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
* clk: mediatek: Add fixed clocks support for Mediatek SoC.James Liao2015-10-01
| | | | | | | | This patch adds fixed clocks support by using CCF fixed-rate clock implementation. Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
* clk: mediatek: Add __initdata and __init for data and functionsJames Liao2015-10-01
| | | | | | | | Add __init for clock registration functions, and add __initdata for mtk_gate_regs initial structures. Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
* clk: mediatek: Add initial common clock support for Mediatek SoCs.James Liao2015-05-06
This patch adds common clock support for Mediatek SoCs, including plls, muxes and clock gates. Signed-off-by: James Liao <jamesjj.liao@mediatek.com> Signed-off-by: Henry Chen <henryc.chen@mediatek.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de> [sboyd@codeaurora.org: Squelch checkpatch warning in clk-mtk.h] Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>