Searched refs:pd_pdev (Results 1 – 2 of 2) sorted by relevance
460 struct platform_device *pd_pdev; in imx_gpc_probe() local480 pd_pdev = platform_device_alloc("imx-pgc-power-domain", in imx_gpc_probe()482 if (!pd_pdev) { in imx_gpc_probe()487 ret = platform_device_add_data(pd_pdev, in imx_gpc_probe()491 platform_device_put(pd_pdev); in imx_gpc_probe()495 domain = pd_pdev->dev.platform_data; in imx_gpc_probe()499 pd_pdev->dev.parent = &pdev->dev; in imx_gpc_probe()500 pd_pdev->dev.of_node = np; in imx_gpc_probe()501 pd_pdev->dev.fwnode = of_fwnode_handle(np); in imx_gpc_probe()503 ret = platform_device_add(pd_pdev); in imx_gpc_probe()[all …]
1472 struct platform_device *pd_pdev; in builtin_platform_driver() local1493 pd_pdev = platform_device_alloc("imx-pgc-domain", in builtin_platform_driver()1495 if (!pd_pdev) { in builtin_platform_driver()1501 ret = platform_device_add_data(pd_pdev, in builtin_platform_driver()1505 platform_device_put(pd_pdev); in builtin_platform_driver()1510 domain = pd_pdev->dev.platform_data; in builtin_platform_driver()1517 pd_pdev->dev.parent = dev; in builtin_platform_driver()1518 pd_pdev->dev.of_node = np; in builtin_platform_driver()1520 ret = platform_device_add(pd_pdev); in builtin_platform_driver()1522 platform_device_put(pd_pdev); in builtin_platform_driver()