-static int vpu_clk_get(struct platform_device *pdev, struct vpu_device *vpu)
-{
- struct device *dev = &pdev->dev;
- int ret;
-
- vpu->clks = vpu_clks;
- vpu->num_clks = ARRAY_SIZE(vpu_clks);
-
- vpu->resets = devm_reset_control_array_get_exclusive(dev);
- if (IS_ERR(vpu->resets)) {
- ret = PTR_ERR(vpu->resets);
- dev_err(dev, "faied to get vpu reset controls\n");
- }
-
- ret = devm_clk_bulk_get(dev, vpu->num_clks, vpu->clks);
- if (ret)
- dev_err(dev, "faied to get vpu clk controls\n");
-
- return 0;
-}
-