]> git.baikalelectronics.ru Git - kernel.git/commit
drm/tegra: Do not use ->load() and ->unload() callbacks
authorThierry Reding <treding@nvidia.com>
Mon, 28 Oct 2019 12:16:10 +0000 (13:16 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 29 Oct 2019 14:04:29 +0000 (15:04 +0100)
commit469f7b02385ba289e58958994fcb8c4d243b0ea0
tree34c6aad20524b06d16f17c6b8266a80272970574
parent329f87ead5f1e8eab15edd269f2d252915e8d3f8
drm/tegra: Do not use ->load() and ->unload() callbacks

The ->load() and ->unload() drivers are midlayers and should be avoided
in modern drivers. Fix this by moving the code into the driver ->probe()
and ->remove() implementations, respectively.

v2: kick out conflicting framebuffers before initializing fbdev
v3: rebase onto drm/tegra/for-next

Tested-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c