[PATCH RFC v6 6/6] ptp_ocp: implement DPLL ops

Jiri Pirko jiri at resnulli.us
Wed Mar 15 08:34:32 PDT 2023


Sun, Mar 12, 2023 at 03:28:07AM CET, vadfed at meta.com wrote:

[...]

>@@ -4226,8 +4377,44 @@ ptp_ocp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
> 
> 	ptp_ocp_info(bp);
> 	devlink_register(devlink);
>-	return 0;
> 
>+	clkid = pci_get_dsn(pdev);
>+	bp->dpll = dpll_device_get(clkid, 0, THIS_MODULE);
>+	if (!bp->dpll) {

You have to use IS_ERR() here. Same problem in ice.

[...]



More information about the linux-arm-kernel mailing list