linux_dsm_epyc7002/drivers/gpu/drm/hisilicon/kirin
Daniel Vetter 38bf57fa7b drm/hisilicon: Don't set drm_device->platformdev
It's deprecated and only should be used by drivers which still use
drm_platform_init, not by anyone else.

And indeed it's entirely unused and can be nuked.

This required a bit more fudging, but I guess kirin_dc_ops really
wants to operate on the platform_device, not something else. Also
bonus points for implementing abstraction, and then storing the vfunc
in a global variable.

v2: Don't break the build soooo badly :(
Note that the cleanup function is a bit confused: ade_data was never
set as drvdata, and calling drm_crtc_cleanup directly is a bug - this
is called indirectly through drm_mode_config_cleanup, which calls into
crtc->destroy, which already has the call to drm_crtc_cleanup. Which
means we can just nuke it.

Note this is the 2nd attempt after the first one failed and had to be
reverted again in

commit 9cd2e854d6
Author: Daniel Vetter <daniel.vetter@ffwll.ch>
Date:   Wed Aug 17 13:59:40 2016 +0200

    Revert "drm/hisilicon: Don't set drm_device->platformdev"

Cc: Xinliang Liu <xinliang.liu@linaro.org>
Cc: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Cc: Archit Taneja <architt@codeaurora.org>
Cc: Sean Paul <seanpaul@chromium.org>
Reviewed-by: Sean Paul <seanpaul@chromium.org>
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20161209141944.22121-1-daniel.vetter@ffwll.ch
2016-12-13 10:11:59 +01:00
..
dw_drm_dsi.c drm/hisilicon: Fix DRM_INFO printed issue 2016-05-11 19:05:36 +08:00
dw_dsi_reg.h drm/hisilicon: Add designware dsi encoder driver 2016-04-29 16:39:13 +08:00
Kconfig drm/hisilicon: add select HISI_KIRIN_DW_DSI 2016-07-04 18:49:20 +08:00
kirin_ade_reg.h drm/hisilicon: Add crtc driver for ADE 2016-04-29 16:39:12 +08:00
kirin_drm_ade.c drm/hisilicon: Don't set drm_device->platformdev 2016-12-13 10:11:59 +01:00
kirin_drm_drv.c drm/hisilicon: Don't set drm_device->platformdev 2016-12-13 10:11:59 +01:00
kirin_drm_drv.h drm/hisilicon: Don't set drm_device->platformdev 2016-12-13 10:11:59 +01:00
Makefile drm/hisilicon: Add designware dsi encoder driver 2016-04-29 16:39:13 +08:00