Lines Matching defs:dev
26 if (!pdev->dev.of_node)
29 aconnect = devm_kzalloc(&pdev->dev, sizeof(struct tegra_aconnect),
34 aconnect->ape_clk = devm_clk_get(&pdev->dev, "ape");
36 dev_err(&pdev->dev, "Can't retrieve ape clock\n");
40 aconnect->apb2ape_clk = devm_clk_get(&pdev->dev, "apb2ape");
42 dev_err(&pdev->dev, "Can't retrieve apb2ape clock\n");
46 dev_set_drvdata(&pdev->dev, aconnect);
47 pm_runtime_enable(&pdev->dev);
49 of_platform_populate(pdev->dev.of_node, NULL, NULL, &pdev->dev);
51 dev_info(&pdev->dev, "Tegra ACONNECT bus registered\n");
58 pm_runtime_disable(&pdev->dev);
63 static int tegra_aconnect_runtime_resume(struct device *dev)
65 struct tegra_aconnect *aconnect = dev_get_drvdata(dev);
70 dev_err(dev, "ape clk_enable failed: %d\n", ret);
77 dev_err(dev, "apb2ape clk_enable failed: %d\n", ret);
84 static int tegra_aconnect_runtime_suspend(struct device *dev)
86 struct tegra_aconnect *aconnect = dev_get_drvdata(dev);