On Fri, Jan 03, 2025 at 07:48:10AM +0200, Dmitry Baryshkov wrote: > > + platform_set_drvdata(pdev, phy); > > + phy->dev = &pdev->dev; > > + > > + phy->data = of_device_get_match_data(dev); > > + if (!phy->data) > > + return -EINVAL; > > + > > + ret = of_property_read_u32(of_node_get(dev->of_node), "num-lanes", > > Who will put the reference count which you have just got? More important: why introducing own pattern of code... Best regards, Krzysztof