[OpenWrt-Devel] [PATCH] gemini: fix usb driver compilation on 3.18

Roman Yeryomin leroi.lists at gmail.com
Fri Mar 27 10:00:58 EDT 2015


Signed-off-by: Roman Yeryomin <roman at advem.lv>
---
 target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c | 4 ++--
 1 file 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 4d95f2e..0717abc 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;
 	}
-- 
2.1.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list