diff options
| author | Tomasz Figa <t.figa@samsung.com> | 2013-05-16 05:57:07 -0400 |
|---|---|---|
| committer | Felipe Balbi <balbi@ti.com> | 2013-05-28 13:06:30 -0400 |
| commit | 87331b069761a292c7d832fc3bb34cde56418982 (patch) | |
| tree | 4aef0a51c542429ba86ec29d67064e341458fe26 /drivers/usb/phy | |
| parent | 6278703bcc4fa9778898ce9a7028b0b8e99747ef (diff) | |
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>
Diffstat (limited to 'drivers/usb/phy')
| -rw-r--r-- | drivers/usb/phy/phy-samsung-usb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/phy/phy-samsung-usb.c b/drivers/usb/phy/phy-samsung-usb.c index 7b118ee5f5e4..62cdb7e13d97 100644 --- a/drivers/usb/phy/phy-samsung-usb.c +++ b/drivers/usb/phy/phy-samsung-usb.c | |||
| @@ -175,9 +175,9 @@ int samsung_usbphy_get_refclk_freq(struct samsung_usbphy *sphy) | |||
| 175 | * external crystal clock XXTI | 175 | * external crystal clock XXTI |
| 176 | */ | 176 | */ |
| 177 | if (sphy->drv_data->cpu_type == TYPE_EXYNOS5250) | 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 | else | 179 | else |
| 180 | ref_clk = devm_clk_get(sphy->dev, "xusbxti"); | 180 | ref_clk = clk_get(sphy->dev, "xusbxti"); |
| 181 | if (IS_ERR(ref_clk)) { | 181 | if (IS_ERR(ref_clk)) { |
| 182 | dev_err(sphy->dev, "Failed to get reference clock\n"); | 182 | dev_err(sphy->dev, "Failed to get reference clock\n"); |
| 183 | return PTR_ERR(ref_clk); | 183 | return PTR_ERR(ref_clk); |
