Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/msm: remove exra drm_kms_helper_poll_init() call

It seems during rebases I have left a call to drm_kms_helper_poll_init()
which is not guarded by the (priv->kms_init) check. This leads to the
crash for the boards which don't have KMS output. Drop this call, as
there is a correctly guarded one next to the one being removed.

Fixes: 506efcba3129 ("drm/msm: carve out KMS code from msm_drv.c")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/566299/
Link: https://lore.kernel.org/r/20231107111413.2212942-1-dmitry.baryshkov@linaro.org
Signed-off-by: Abhinav Kumar <quic_abhinavk@quicinc.com>

authored by

Dmitry Baryshkov and committed by
Abhinav Kumar
3944e343 b3e0f94d

-2
-2
drivers/gpu/drm/msm/msm_drv.c
··· 286 286 if (ret) 287 287 goto err_msm_uninit; 288 288 289 - drm_kms_helper_poll_init(ddev); 290 - 291 289 if (priv->kms_init) { 292 290 drm_kms_helper_poll_init(ddev); 293 291 msm_fbdev_setup(ddev);