Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1466412
| From | Kishon Vijay Abraham I <kishon@ti.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 4/4] phy: sun9i-usb: fix error handling |
| Date | 2016-08-19 15:30 +0200 |
| Message-ID | <s7S1Z-68X-49@gated-at.bofh.it> (permalink) |
| References | <s7S1Y-68X-9@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
From: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
This is likely that checking 'phy->hsic_clk' instead of 'phy->clk' is
expected here.
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Chen-Yu Tsai <wens@csie.org
Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
---
drivers/phy/phy-sun9i-usb.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/phy/phy-sun9i-usb.c b/drivers/phy/phy-sun9i-usb.c
index ac4f31a..28fce4b 100644
--- a/drivers/phy/phy-sun9i-usb.c
+++ b/drivers/phy/phy-sun9i-usb.c
@@ -141,9 +141,9 @@ static int sun9i_usb_phy_probe(struct platform_device *pdev)
}
phy->hsic_clk = devm_clk_get(dev, "hsic_12M");
- if (IS_ERR(phy->clk)) {
+ if (IS_ERR(phy->hsic_clk)) {
dev_err(dev, "failed to get hsic_12M clock\n");
- return PTR_ERR(phy->clk);
+ return PTR_ERR(phy->hsic_clk);
}
phy->reset = devm_reset_control_get(dev, "hsic");
--
1.7.9.5
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[GIT PULL] phy: for 4.8 -rc Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200 [PATCH 1/4] phy-sun4i-usb: Add support for peripheral-only mode Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200 [PATCH 2/4] mfd: da8xx-cfgchip: New header file for CFGCHIP registers Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200 [PATCH 3/4] phy: brcm-sata: Return proper error if brcm_sata_phy_init fails Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200 [PATCH 4/4] phy: sun9i-usb: fix error handling Kishon Vijay Abraham I <kishon@ti.com> - 2016-08-19 15:30 +0200
csiph-web