drm/panfrost: properly handle error in probe
authorClément Péron <peron.clem@gmail.com>
Fri, 10 Jul 2020 09:54:01 +0000 (11:54 +0200)
committerRob Herring <robh@kernel.org>
Fri, 7 Aug 2020 16:11:26 +0000 (10:11 -0600)
commit81f2fbe62cb54b6cf3d91078c4d49451ba7b9877
treed58b4b61a74211094dbdc0b80f3cbdada8ae3477
parented85df3f60740bb4be23fbc2db283d59b361a834
drm/panfrost: properly handle error in probe

Introduce a boolean to know if opp table has been added.

With this, we can call panfrost_devfreq_fini() in case of error
and release what has been initialised.

Reviewed-by: Steven Price <steven.price@arm.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Signed-off-by: Clément Péron <peron.clem@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200710095409.407087-7-peron.clem@gmail.com
drivers/gpu/drm/panfrost/panfrost_devfreq.c
drivers/gpu/drm/panfrost/panfrost_devfreq.h