drm/msm/dsi_pll_10nm: Release clk hw on destroy and failure
authorSean Paul <seanpaul@chromium.org>
Mon, 17 Jun 2019 20:12:49 +0000 (16:12 -0400)
committerSean Paul <seanpaul@chromium.org>
Thu, 20 Jun 2019 18:42:01 +0000 (14:42 -0400)
commit83dda228866eb2e30bff2fc7a4192872f61fe900
treea6f971323e48645bf8ee598ccf23982efdfc52a6
parent7896e2237d034493036b25fc0c674654eeeb4dfa
drm/msm/dsi_pll_10nm: Release clk hw on destroy and failure

The 10nm pll driver didn't have any failure-path cleanup in register,
and the destroy function didn't unregister any of the hardware. This
patch adds both.

The reason things haven't been blowing up horribly is that msm_drv has a
reference count issue that keeps devices alive, so the destroy function
was never called. That will be fixed in a follow-up patch.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20190617201301.133275-1-sean@poorly.run
drivers/gpu/drm/msm/dsi/pll/dsi_pll_10nm.c