diff options
| -rw-r--r-- | arch/arm/mach-shmobile/board-marzen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-shmobile/board-marzen.c b/arch/arm/mach-shmobile/board-marzen.c index 91052855cc12..b9594e911ce7 100644 --- a/arch/arm/mach-shmobile/board-marzen.c +++ b/arch/arm/mach-shmobile/board-marzen.c | |||
| @@ -212,8 +212,8 @@ static struct platform_device *marzen_devices[] __initdata = { | |||
| 212 | static struct usb_phy *phy; | 212 | static struct usb_phy *phy; |
| 213 | static int usb_power_on(struct platform_device *pdev) | 213 | static int usb_power_on(struct platform_device *pdev) |
| 214 | { | 214 | { |
| 215 | if (!phy) | 215 | if (IS_ERR(phy)) |
| 216 | return -EIO; | 216 | return PTR_ERR(phy); |
| 217 | 217 | ||
| 218 | pm_runtime_enable(&pdev->dev); | 218 | pm_runtime_enable(&pdev->dev); |
| 219 | pm_runtime_get_sync(&pdev->dev); | 219 | pm_runtime_get_sync(&pdev->dev); |
| @@ -225,7 +225,7 @@ static int usb_power_on(struct platform_device *pdev) | |||
| 225 | 225 | ||
| 226 | static void usb_power_off(struct platform_device *pdev) | 226 | static void usb_power_off(struct platform_device *pdev) |
| 227 | { | 227 | { |
| 228 | if (!phy) | 228 | if (IS_ERR(phy)) |
| 229 | return; | 229 | return; |
| 230 | 230 | ||
| 231 | usb_phy_shutdown(phy); | 231 | usb_phy_shutdown(phy); |
