drm/etnaviv: Don't ignore errors on getting clocks
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 16 Jun 2020 21:21:25 +0000 (23:21 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 18 Jun 2020 12:23:11 +0000 (14:23 +0200)
commitf76fc5ff9a6533d6eadb8521bf60bf7b1cf293b9
treeef0d5a5d4782fe5afc72cd46ac040ba924471b7e
parentf8794feaf65cdc97767604cf864775d20b97f397
drm/etnaviv: Don't ignore errors on getting clocks

There might be good reasons why the getting a clock failed. To treat the
clocks as optional we're specifically only interested in ignoring -ENOENT,
and devm_clk_get_optional() does just that.

Note that this preserves the original behavior of all clocks being
optional. The binding document mandates the "bus" clock while the dove
machine only specifies "core".

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gpu.c