From: Felix Fietkau Date: Fri, 27 Mar 2015 16:03:16 +0000 (+0000) Subject: gemini: fix usb driver compilation on 3.18 X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=c6a29d2528db2b5c0504d0eaaf80e65b92edd303;p=openwrt%2Fstaging%2Fynezz.git gemini: fix usb driver compilation on 3.18 Signed-off-by: Roman Yeryomin SVN-Revision: 45065 --- diff --git a/target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c b/target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c index 4d95f2e5c8..0717abce9c 100644 --- a/target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c +++ b/target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c @@ -206,8 +206,8 @@ static int fotg2_ehci_probe(struct platform_device *pdev) hcd->rsrc_start = res->start; hcd->rsrc_len = resource_size(res); - hcd->regs = devm_request_and_ioremap(&pdev->dev, res); - if (!hcd->regs) { + hcd->regs = devm_ioremap_resource(&pdev->dev, res); + if (IS_ERR(hcd->regs)) { err = -ENOMEM; goto err_put_hcd; }