Lines Matching defs:dev
22 struct device *dev;
96 struct device *dev = &pdev->dev;
100 phy = devm_kzalloc(dev, sizeof(*phy), GFP_KERNEL);
104 phy->dev = &pdev->dev;
107 dev_err(dev, "failed to remap register memory\n");
111 phy->por_rst = devm_reset_control_get(phy->dev, "por_rst");
114 dev_err(dev, "POR reset is missing\n");
118 phy->srif_rst = devm_reset_control_get_optional(phy->dev, "srif_rst");
122 phy->phy = devm_phy_create(dev, NULL, of_device_get_match_data(dev));
124 dev_err(dev, "failed to create PHY\n");
129 phy_provider = devm_of_phy_provider_register(dev, of_phy_simple_xlate);