Commit 580b000d authored by Olof Johansson's avatar Olof Johansson

Merge tag 'renesas-boards-marzen-fixes-for-v3.10' of...

Merge tag 'renesas-boards-marzen-fixes-for-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas into fixes

From Simon Horman:
Correct USB PHY initialisation on the marzen board.

* tag 'renesas-boards-marzen-fixes-for-v3.10' of git://git.kernel.org/pub/scm/linux/kernel/git/horms/renesas:
  ARM: shmobile: marzen: Use error values in usb_power_*
Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parents 25625c93 5f10428e
...@@ -212,8 +212,8 @@ static struct platform_device *marzen_devices[] __initdata = { ...@@ -212,8 +212,8 @@ static struct platform_device *marzen_devices[] __initdata = {
static struct usb_phy *phy; static struct usb_phy *phy;
static int usb_power_on(struct platform_device *pdev) static int usb_power_on(struct platform_device *pdev)
{ {
if (!phy) if (IS_ERR(phy))
return -EIO; return PTR_ERR(phy);
pm_runtime_enable(&pdev->dev); pm_runtime_enable(&pdev->dev);
pm_runtime_get_sync(&pdev->dev); pm_runtime_get_sync(&pdev->dev);
...@@ -225,7 +225,7 @@ static int usb_power_on(struct platform_device *pdev) ...@@ -225,7 +225,7 @@ static int usb_power_on(struct platform_device *pdev)
static void usb_power_off(struct platform_device *pdev) static void usb_power_off(struct platform_device *pdev)
{ {
if (!phy) if (IS_ERR(phy))
return; return;
usb_phy_shutdown(phy); usb_phy_shutdown(phy);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment