提交 ab455450 编写于 作者: C Christophe JAILLET 提交者: Greg Kroah-Hartman

usb: phy: jz4770: Add a missing '\n' in a log message

Message logged by 'dev_xxx()' or 'pr_xxx()' should end with a '\n'.

Fixes: 541368b4 ("usb: phy: Add driver for the Ingenic JZ4770 USB transceiver")
Signed-off-by: NChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20200411063811.6767-1-christophe.jaillet@wanadoo.frSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 b0d84e45
...@@ -125,13 +125,13 @@ static int jz4770_phy_init(struct usb_phy *phy) ...@@ -125,13 +125,13 @@ static int jz4770_phy_init(struct usb_phy *phy)
err = regulator_enable(priv->vcc_supply); err = regulator_enable(priv->vcc_supply);
if (err) { if (err) {
dev_err(priv->dev, "Unable to enable VCC: %d", err); dev_err(priv->dev, "Unable to enable VCC: %d\n", err);
return err; return err;
} }
err = clk_prepare_enable(priv->clk); err = clk_prepare_enable(priv->clk);
if (err) { if (err) {
dev_err(priv->dev, "Unable to start clock: %d", err); dev_err(priv->dev, "Unable to start clock: %d\n", err);
return err; return err;
} }
...@@ -191,7 +191,7 @@ static int jz4770_phy_probe(struct platform_device *pdev) ...@@ -191,7 +191,7 @@ static int jz4770_phy_probe(struct platform_device *pdev)
priv->base = devm_platform_ioremap_resource(pdev, 0); priv->base = devm_platform_ioremap_resource(pdev, 0);
if (IS_ERR(priv->base)) { if (IS_ERR(priv->base)) {
dev_err(dev, "Failed to map registers"); dev_err(dev, "Failed to map registers\n");
return PTR_ERR(priv->base); return PTR_ERR(priv->base);
} }
...@@ -199,7 +199,7 @@ static int jz4770_phy_probe(struct platform_device *pdev) ...@@ -199,7 +199,7 @@ static int jz4770_phy_probe(struct platform_device *pdev)
if (IS_ERR(priv->clk)) { if (IS_ERR(priv->clk)) {
err = PTR_ERR(priv->clk); err = PTR_ERR(priv->clk);
if (err != -EPROBE_DEFER) if (err != -EPROBE_DEFER)
dev_err(dev, "Failed to get clock"); dev_err(dev, "Failed to get clock\n");
return err; return err;
} }
...@@ -207,14 +207,14 @@ static int jz4770_phy_probe(struct platform_device *pdev) ...@@ -207,14 +207,14 @@ static int jz4770_phy_probe(struct platform_device *pdev)
if (IS_ERR(priv->vcc_supply)) { if (IS_ERR(priv->vcc_supply)) {
err = PTR_ERR(priv->vcc_supply); err = PTR_ERR(priv->vcc_supply);
if (err != -EPROBE_DEFER) if (err != -EPROBE_DEFER)
dev_err(dev, "failed to get regulator"); dev_err(dev, "Failed to get regulator\n");
return err; return err;
} }
err = usb_add_phy(&priv->phy, USB_PHY_TYPE_USB2); err = usb_add_phy(&priv->phy, USB_PHY_TYPE_USB2);
if (err) { if (err) {
if (err != -EPROBE_DEFER) if (err != -EPROBE_DEFER)
dev_err(dev, "Unable to register PHY"); dev_err(dev, "Unable to register PHY\n");
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册