diff options
author | Pavel Kubelun <be.dissent@gmail.com> | 2016-11-02 22:08:45 +0300 |
---|---|---|
committer | John Crispin <john@phrozen.org> | 2016-11-03 08:28:16 +0100 |
commit | 8749fb7894601011811dd7409b48401b3aafe0dd (patch) | |
tree | 14ab1fbcfdd5ccb09b694e474f1eb701559573a4 /target/linux/ipq806x/patches-4.4/002-make-reset-control-ops-const.patch | |
parent | bf7166e54569266a7d7525742f3216b4e3064825 (diff) | |
download | upstream-8749fb7894601011811dd7409b48401b3aafe0dd.tar.gz upstream-8749fb7894601011811dd7409b48401b3aafe0dd.tar.bz2 upstream-8749fb7894601011811dd7409b48401b3aafe0dd.zip |
ipq806x: update clk-qcom patches
Preparing for cpufreq driver switch to generic cpufreq-dt
Signed-off-by: Pavel Kubelun <be.dissent@gmail.com>
Diffstat (limited to 'target/linux/ipq806x/patches-4.4/002-make-reset-control-ops-const.patch')
-rw-r--r-- | target/linux/ipq806x/patches-4.4/002-make-reset-control-ops-const.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/target/linux/ipq806x/patches-4.4/002-make-reset-control-ops-const.patch b/target/linux/ipq806x/patches-4.4/002-make-reset-control-ops-const.patch new file mode 100644 index 0000000000..6261125473 --- /dev/null +++ b/target/linux/ipq806x/patches-4.4/002-make-reset-control-ops-const.patch @@ -0,0 +1,35 @@ +From add479eeb1a208a31ab913ae7c97506a81383079 Mon Sep 17 00:00:00 2001 +From: Philipp Zabel <p.zabel@pengutronix.de> +Date: Thu, 25 Feb 2016 10:45:12 +0100 +Subject: clk: qcom: Make reset_control_ops const + +The qcom_reset_ops structure is never modified. Make it const. + +Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> +Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> +--- + drivers/clk/qcom/reset.c | 2 +- + drivers/clk/qcom/reset.h | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +--- a/drivers/clk/qcom/reset.c ++++ b/drivers/clk/qcom/reset.c +@@ -55,7 +55,7 @@ qcom_reset_deassert(struct reset_control + return regmap_update_bits(rst->regmap, map->reg, mask, 0); + } + +-struct reset_control_ops qcom_reset_ops = { ++const struct reset_control_ops qcom_reset_ops = { + .reset = qcom_reset, + .assert = qcom_reset_assert, + .deassert = qcom_reset_deassert, +--- a/drivers/clk/qcom/reset.h ++++ b/drivers/clk/qcom/reset.h +@@ -32,6 +32,6 @@ struct qcom_reset_controller { + #define to_qcom_reset_controller(r) \ + container_of(r, struct qcom_reset_controller, rcdev); + +-extern struct reset_control_ops qcom_reset_ops; ++extern const struct reset_control_ops qcom_reset_ops; + + #endif |