Re: [PATCH 2/3] drm/vc4: Enable runtime PM.

From: Eric Anholt
Date: Tue Feb 16 2016 - 13:53:41 EST


Eric Anholt <eric@xxxxxxxxxx> writes:
> +#ifdef CONFIG_PM_SLEEP
> +static int vc4_v3d_runtime_suspend(struct device *dev)
> +{
> + struct vc4_v3d *v3d = dev_get_drvdata(dev);
> + struct vc4_dev *vc4 = v3d->vc4;
> +
> + vc4_irq_uninstall(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;
> +
> + vc4_v3d_init_hw(vc4->dev);
> + vc4_irq_postinstall(vc4->dev);
> +
> + return 0;
> +}
> +#endif

kbuild test robot caught that this #ifdef should have been CONFIG_PM,
not CONFIG_PM_SLEEP. Fixed in v2.

Attachment: signature.asc
Description: PGP signature