diff options
Diffstat (limited to 'drivers/usb/host/ohci-sh.c')
-rw-r--r-- | drivers/usb/host/ohci-sh.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/usb/host/ohci-sh.c b/drivers/usb/host/ohci-sh.c index 84686d90805b..76a20c278362 100644 --- a/drivers/usb/host/ohci-sh.c +++ b/drivers/usb/host/ohci-sh.c | |||
@@ -88,20 +88,20 @@ static int ohci_hcd_sh_probe(struct platform_device *pdev) | |||
88 | 88 | ||
89 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 89 | res = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
90 | if (!res) { | 90 | if (!res) { |
91 | err("platform_get_resource error."); | 91 | dev_err(&pdev->dev, "platform_get_resource error.\n"); |
92 | return -ENODEV; | 92 | return -ENODEV; |
93 | } | 93 | } |
94 | 94 | ||
95 | irq = platform_get_irq(pdev, 0); | 95 | irq = platform_get_irq(pdev, 0); |
96 | if (irq < 0) { | 96 | if (irq < 0) { |
97 | err("platform_get_irq error."); | 97 | dev_err(&pdev->dev, "platform_get_irq error.\n"); |
98 | return -ENODEV; | 98 | return -ENODEV; |
99 | } | 99 | } |
100 | 100 | ||
101 | /* initialize hcd */ | 101 | /* initialize hcd */ |
102 | hcd = usb_create_hcd(&ohci_sh_hc_driver, &pdev->dev, (char *)hcd_name); | 102 | hcd = usb_create_hcd(&ohci_sh_hc_driver, &pdev->dev, (char *)hcd_name); |
103 | if (!hcd) { | 103 | if (!hcd) { |
104 | err("Failed to create hcd"); | 104 | dev_err(&pdev->dev, "Failed to create hcd\n"); |
105 | return -ENOMEM; | 105 | return -ENOMEM; |
106 | } | 106 | } |
107 | 107 | ||
@@ -110,7 +110,7 @@ static int ohci_hcd_sh_probe(struct platform_device *pdev) | |||
110 | hcd->rsrc_len = resource_size(res); | 110 | hcd->rsrc_len = resource_size(res); |
111 | ret = usb_add_hcd(hcd, irq, IRQF_SHARED); | 111 | ret = usb_add_hcd(hcd, irq, IRQF_SHARED); |
112 | if (ret != 0) { | 112 | if (ret != 0) { |
113 | err("Failed to add hcd"); | 113 | dev_err(&pdev->dev, "Failed to add hcd\n"); |
114 | usb_put_hcd(hcd); | 114 | usb_put_hcd(hcd); |
115 | return ret; | 115 | return ret; |
116 | } | 116 | } |