drm/msm/hdmi: move resource allocation to probe function
authorDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 26 Aug 2022 09:39:25 +0000 (12:39 +0300)
committerDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Fri, 4 Nov 2022 12:29:03 +0000 (15:29 +0300)
commit69a88d8633ecc577cb6915a4050ec1e7a4099814
tree844128e287779253c890d985995523c1020607b8
parentf6cb1430bb32c1daec49fc9067a0bc2f03d02ed4
drm/msm/hdmi: move resource allocation to probe function

Rather than having all resource allocation happen in the _bind function
(resulting in possible EPROBE_DEFER returns and component bind/unbind
cycles) allocate and check all resources in _probe function. While we
are at it, use platform_get_irq() to get the IRQ rather than going
through the irq_of_parse_and_map().

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/499649/
Link: https://lore.kernel.org/r/20220826093927.851597-4-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
drivers/gpu/drm/msm/hdmi/hdmi.c