mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-03 00:54:09 +08:00
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>
This commit is contained in:
parent
339073ef77
commit
f6427760a2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user