gemini: fix usb driver compilation on 3.18
authorFelix Fietkau <nbd@openwrt.org>
Fri, 27 Mar 2015 16:03:16 +0000 (16:03 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Fri, 27 Mar 2015 16:03:16 +0000 (16:03 +0000)
Signed-off-by: Roman Yeryomin <roman@advem.lv>
SVN-Revision: 45065

target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c

index 4d95f2e5c8cfdf32e8ae560d8cf1a71e1548b1aa..0717abce9c48ab6f8a5c2ba516fa227d1260efbd 100644 (file)
@@ -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;
        }