Преглед на файлове

gemini: fix usb driver compilation on 3.18

Signed-off-by: Roman Yeryomin <[email protected]>

SVN-Revision: 45065
Felix Fietkau преди 10 години
родител
ревизия
c6a29d2528
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      target/linux/gemini/files/drivers/usb/host/ehci-fotg2.c

+ 2 - 2
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;
 	}