diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-27 16:03:16 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-27 16:03:16 +0000 |
commit | 06e722b91f3991324f5328556eafd55290a97fcb (patch) | |
tree | 60acb09c71dbdf4ff5c4c9702c2a0b35c9a38a76 | |
parent | 1fc997f891f7a0f2335950096724a8334559a36c (diff) | |
download | upstream-06e722b91f3991324f5328556eafd55290a97fcb.tar.gz upstream-06e722b91f3991324f5328556eafd55290a97fcb.tar.bz2 upstream-06e722b91f3991324f5328556eafd55290a97fcb.zip |
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
-rw-r--r-- | target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |