Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: phy: samsung: Use clk_get to get reference clock

There is no need to use devm_clk_get to get a clock that is being put
at the end of the function.

This patch changes the code getting reference clock to use clk_get
instead of useless in this case devm_clk_get.

Signed-off-by: Tomasz Figa <t.figa@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>

authored by

Tomasz Figa and committed by
Felipe Balbi
87331b06 6278703b

+2 -2
+2 -2
drivers/usb/phy/phy-samsung-usb.c
··· 175 175 * external crystal clock XXTI 176 176 */ 177 177 if (sphy->drv_data->cpu_type == TYPE_EXYNOS5250) 178 - ref_clk = devm_clk_get(sphy->dev, "ext_xtal"); 178 + ref_clk = clk_get(sphy->dev, "ext_xtal"); 179 179 else 180 - ref_clk = devm_clk_get(sphy->dev, "xusbxti"); 180 + ref_clk = clk_get(sphy->dev, "xusbxti"); 181 181 if (IS_ERR(ref_clk)) { 182 182 dev_err(sphy->dev, "Failed to get reference clock\n"); 183 183 return PTR_ERR(ref_clk);