gemini: fix usb driver compilation on 3.18

Signed-off-by: Roman Yeryomin <roman@advem.lv>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45065 3c298f89-4303-0410-b956-a3cf2f4a3e73
master
Felix Fietkau 2015-03-27 16:03:16 +00:00
parent 1fc997f891
commit 06e722b91f
1 changed files with 2 additions and 2 deletions

View 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;
}