mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-07 12:25:00 -04:00
clk: qcom: clk-debug: Detach the clock request from syscon regmap
syscon_regmap_lookup_by_phandle prepares the 0th clk handle provided in the device node. The debug clock controller prepares/enables/disables the required clock, thus it is safe to detach the clock to remove the undesired clock prepare votes. Change-Id: Ibacac8161ba8244c170a87f172c3ad9029625ed7 Signed-off-by: Taniya Das <tdas@codeaurora.org>
This commit is contained in:
parent
5bebd12bfa
commit
f3e2d69be4
1 changed files with 8 additions and 0 deletions
|
|
@ -357,6 +357,14 @@ int map_debug_bases(struct platform_device *pdev, const char *base,
|
|||
PTR_ERR(mux->regmap));
|
||||
return PTR_ERR(mux->regmap);
|
||||
}
|
||||
|
||||
/*
|
||||
* syscon_regmap_lookup_by_phandle prepares the 0th clk handle provided
|
||||
* in the device node. The debug clock controller prepares/enables/
|
||||
* disables the required clock, thus detach the clock.
|
||||
*/
|
||||
regmap_mmio_detach_clk(mux->regmap);
|
||||
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL(map_debug_bases);
|
||||
|
|
|
|||
Loading…
Reference in a new issue