aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/host/ohci-platform.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/host/ohci-platform.c')
-rw-r--r--drivers/usb/host/ohci-platform.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/usb/host/ohci-platform.c b/drivers/usb/host/ohci-platform.c
index 084503b03fcf..c3e7287f7921 100644
--- a/drivers/usb/host/ohci-platform.c
+++ b/drivers/usb/host/ohci-platform.c
@@ -13,6 +13,7 @@
13 * 13 *
14 * Licensed under the GNU/GPL. See COPYING for details. 14 * Licensed under the GNU/GPL. See COPYING for details.
15 */ 15 */
16#include <linux/err.h>
16#include <linux/platform_device.h> 17#include <linux/platform_device.h>
17#include <linux/usb/ohci_pdriver.h> 18#include <linux/usb/ohci_pdriver.h>
18 19
@@ -127,9 +128,9 @@ static int ohci_platform_probe(struct platform_device *dev)
127 hcd->rsrc_start = res_mem->start; 128 hcd->rsrc_start = res_mem->start;
128 hcd->rsrc_len = resource_size(res_mem); 129 hcd->rsrc_len = resource_size(res_mem);
129 130
130 hcd->regs = devm_request_and_ioremap(&dev->dev, res_mem); 131 hcd->regs = devm_ioremap_resource(&dev->dev, res_mem);
131 if (!hcd->regs) { 132 if (IS_ERR(hcd->regs)) {
132 err = -ENOMEM; 133 err = PTR_ERR(hcd->regs);
133 goto err_put_hcd; 134 goto err_put_hcd;
134 } 135 }
135 err = usb_add_hcd(hcd, irq, IRQF_SHARED); 136 err = usb_add_hcd(hcd, irq, IRQF_SHARED);