• Daniel Vetter's avatar
    drm/managed: Cleanup of unused functions and polishing docs · 4c8e84b8
    Daniel Vetter authored
    Following functions are only used internally, not by drivers:
    - devm_drm_dev_init
    
    Also, now that we have a very slick and polished way to allocate a
    drm_device with devm_drm_dev_alloc, update all the docs to reflect the
    new reality. Mostly this consists of deleting old and misleading
    hints. Two main ones:
    
    - it is no longer required that the drm_device base class is first in
      the structure. devm_drm_dev_alloc can cope with it being anywhere
    
    - obviously embedded now strongly recommends using devm_drm_dev_alloc
    
    v2: Fix typos (Noralf)
    
    v3: Split out the removal of drm_dev_init, that's blocked on some
    discussions on how to convert vgem/vkms/i915-selftests. Adjust commit
    message to reflect that.
    
    Cc: Noralf Trønnes <noralf@tronnes.org>
    Acked-by: Noralf Trønnes <noralf@tronnes.org> (v2)
    Acked-by: default avatarSam Ravnborg <sam@ravnborg.org>
    Cc: Luben Tuikov <luben.tuikov@amd.com>
    Cc: amd-gfx@lists.freedesktop.org
    Signed-off-by: default avatarDaniel Vetter <daniel.vetter@intel.com>
    Link: https://patchwork.freedesktop.org/patch/msgid/20200902072627.3617301-1-daniel.vetter@ffwll.ch
    4c8e84b8
drm_device.h 8.87 KB