static int vc4_v3d_runtime_resume(struct device *dev) { struct vc4_v3d *v3d = dev_get_drvdata(dev); struct vc4_dev *vc4 = v3d->vc4; vc4_v3d_init_hw(vc4->dev); vc4_irq_postinstall(vc4->dev); return 0; }
static int vc4_v3d_runtime_resume(struct device *dev) { struct vc4_v3d *v3d = dev_get_drvdata(dev); struct vc4_dev *vc4 = v3d->vc4; int ret; ret = vc4_allocate_bin_bo(vc4->dev); if (ret) return ret; ret = clk_prepare_enable(v3d->clk); if (ret != 0) return ret; vc4_v3d_init_hw(vc4->dev); vc4_irq_postinstall(vc4->dev); return 0; }