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)
commita7303f7735717c95bf5f65c18c901c72e91dc55b
tree34c6aad20524b06d16f17c6b8266a80272970574
parent85d0c4b54fbd5383950ce364641883ea4ad45362
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