diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2016-01-24 17:32:13 +0000 |
---|---|---|
committer | Lucas Stach <l.stach@pengutronix.de> | 2016-01-25 14:23:51 +0100 |
commit | f6427760a29ba3fd968e27ea567b1ebdd500740b (patch) | |
tree | 14c4ffd49d5a276ab2507f1849d3a1c6cbce7d26 /drivers/gpu/drm/etnaviv | |
parent | 339073ef77e45e87ec4cc8671b2d2328dcfd31f0 (diff) | |
download | op-kernel-dev-f6427760a29ba3fd968e27ea567b1ebdd500740b.zip op-kernel-dev-f6427760a29ba3fd968e27ea567b1ebdd500740b.tar.gz |
drm/etnaviv: fix failure path if model is zero
Fix the failure path to call pm_runtime_mark_last_busy() when failing
due to the model field being zero.
Acked-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'drivers/gpu/drm/etnaviv')
-rw-r--r-- | drivers/gpu/drm/etnaviv/etnaviv_gpu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 056a72e..e0e68dd 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -511,8 +511,8 @@ int etnaviv_gpu_init(struct etnaviv_gpu *gpu) if (gpu->identity.model == 0) { dev_err(gpu->dev, "Unknown GPU model\n"); - pm_runtime_put_autosuspend(gpu->dev); - return -ENXIO; + ret = -ENXIO; + goto fail; } ret = etnaviv_hw_reset(gpu); |