drm/msm: Remove need for reiterating the compatibles
authorBjorn Andersson <bjorn.andersson@linaro.org>
Wed, 17 Mar 2021 02:56:34 +0000 (19:56 -0700)
committerRob Clark <robdclark@chromium.org>
Wed, 7 Apr 2021 18:05:43 +0000 (11:05 -0700)
commit8424084fbac04e7f45041f0a39b262aad24091d4
tree60e96ea75ba860f410273cff00064ba584717d0a
parent0054eeb72ab63fd4007303c57748c79fcd285e7c
drm/msm: Remove need for reiterating the compatibles

After spending a non-negligible time trying to figure out why
dpu_kms_init() would dereference a NULL dpu_kms->pdev, it turns out that
in addition to adding the new compatible to the msm_drv of_match_table
one also need to teach add_display_components() to register the child
nodes - which includes the DPU platform_device.

Replace the open coded test for compatibles with a check against the
match data of the mdss device to save others this trouble in the future.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210317025634.3987908-1-bjorn.andersson@linaro.org
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c