Commit 57f068be authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Felipe Balbi

usb: isp1760: Manage device driver data in common code

Don't duplicate *_set_drvdata calls in glue code.
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
parent 10c73f09
......@@ -2252,6 +2252,8 @@ struct usb_hcd *isp1760_register(phys_addr_t res_start, resource_size_t res_len,
goto err_unmap;
device_wakeup_enable(hcd->self.controller);
dev_set_drvdata(dev, hcd);
return hcd;
err_unmap:
......
......@@ -146,7 +146,6 @@ static int isp1761_pci_probe(struct pci_dev *dev,
iounmap(iobase);
release_mem_region(nxp_pci_io_base, iolength);
pci_set_drvdata(dev, hcd);
return 0;
cleanup3:
......@@ -272,8 +271,6 @@ static int isp1760_plat_probe(struct platform_device *pdev)
goto cleanup;
}
platform_set_drvdata(pdev, hcd);
pr_info("ISP1760 USB device initialised\n");
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment