summaryrefslogtreecommitdiffstats
path: root/drivers/clk/nxp/clk-lpc18xx-ccu.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2016-05-03 16:09:56 +0200
committerMark Brown <broonie@kernel.org>2016-05-03 16:09:56 +0200
commitbc0868c62bb13834b20a864f684cced1f84a2412 (patch)
tree2c382dcd24ac95f4dbf53d238d3161d6171d8a4b /drivers/clk/nxp/clk-lpc18xx-ccu.c
parentregulator: pwm: Try to avoid voltage error in duty cycle calculation (diff)
parentregulator: pwm: Use pwm_get_args() where appropriate (diff)
downloadlinux-bc0868c62bb13834b20a864f684cced1f84a2412.tar.xz
linux-bc0868c62bb13834b20a864f684cced1f84a2412.zip
Merge branch 'for-4.7/pwm-regulator' of git://git.kernel.org/pub/scm/linux/kernel/git/thierry.reding/linux-pwm into regulator-pwm
Diffstat (limited to 'drivers/clk/nxp/clk-lpc18xx-ccu.c')
-rw-r--r--drivers/clk/nxp/clk-lpc18xx-ccu.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/clk/nxp/clk-lpc18xx-ccu.c b/drivers/clk/nxp/clk-lpc18xx-ccu.c
index 13aabbb3acbe..f7136b94fd0e 100644
--- a/drivers/clk/nxp/clk-lpc18xx-ccu.c
+++ b/drivers/clk/nxp/clk-lpc18xx-ccu.c
@@ -28,8 +28,6 @@
#define CCU_BRANCH_IS_BUS BIT(0)
#define CCU_BRANCH_HAVE_DIV2 BIT(1)
-#define to_clk_gate(_hw) container_of(_hw, struct clk_gate, hw)
-
struct lpc18xx_branch_clk_data {
const char **name;
int num;
@@ -222,7 +220,7 @@ static void lpc18xx_ccu_register_branch_gate_div(struct lpc18xx_clk_branch *bran
div->width = 1;
div_hw = &div->hw;
- div_ops = &clk_divider_ops;
+ div_ops = &clk_divider_ro_ops;
}
branch->gate.reg = branch->offset + reg_base;