Don't duplicate *_set_drvdata calls in glue code.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
goto err_unmap;
device_wakeup_enable(hcd->self.controller);
+ dev_set_drvdata(dev, hcd);
+
return hcd;
err_unmap:
iounmap(iobase);
release_mem_region(nxp_pci_io_base, iolength);
- pci_set_drvdata(dev, hcd);
return 0;
cleanup3:
goto cleanup;
}
- platform_set_drvdata(pdev, hcd);
-
pr_info("ISP1760 USB device initialised\n");
return 0;