Searched refs:new_pdev (Results 1 – 2 of 2) sorted by relevance
400 struct platform_device *new_pdev; in hi6421_spmi_regulator_probe() local425 new_pdev = platform_device_alloc(child->name, -1); in hi6421_spmi_regulator_probe()426 new_pdev->dev.parent = pmic_dev; in hi6421_spmi_regulator_probe()427 new_pdev->dev.of_node = of_node_get(child); in hi6421_spmi_regulator_probe()429 ret = platform_device_add(new_pdev); in hi6421_spmi_regulator_probe()431 platform_device_put(new_pdev); in hi6421_spmi_regulator_probe()435 ret = hi6421_spmi_regulator_probe_ldo(new_pdev, child, pmic); in hi6421_spmi_regulator_probe()437 platform_device_put(new_pdev); in hi6421_spmi_regulator_probe()
361 struct platform_device *new_pdev; in hidma_mgmt_of_populate_channels() local385 new_pdev = platform_device_register_full(&pdevinfo); in hidma_mgmt_of_populate_channels()386 if (IS_ERR(new_pdev)) { in hidma_mgmt_of_populate_channels()387 ret = PTR_ERR(new_pdev); in hidma_mgmt_of_populate_channels()390 new_pdev->dev.of_node = child; in hidma_mgmt_of_populate_channels()391 of_dma_configure(&new_pdev->dev, child, true); in hidma_mgmt_of_populate_channels()396 of_msi_configure(&new_pdev->dev, child); in hidma_mgmt_of_populate_channels()