]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: Set device driver data at bind time for use in unbind
authorPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Thu, 18 Apr 2019 13:27:26 +0000 (15:27 +0200)
committerMaxime Ripard <maxime.ripard@bootlin.com>
Thu, 18 Apr 2019 14:26:36 +0000 (16:26 +0200)
commit64cf9a3b7d97eae93b5456ccf6b74fe8ce4cb786
tree5ac7d625b794b45b8544cd83908ea82de4fbc445
parent6e1b5254eaf0c5f6ada8c0d578e53a0f401a1d7d
drm/sun4i: Set device driver data at bind time for use in unbind

Our sun4i_drv_unbind gets the drm device using dev_get_drvdata.
However, that driver data is never set in sun4i_drv_bind.

Set it there to avoid getting a NULL pointer at unbind time.

Fixes: 19f0a1ddb467 ("drm: Add Allwinner A10 Display Engine support")
Signed-off-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190418132727.5128-3-paul.kocialkowski@bootlin.com
drivers/gpu/drm/sun4i/sun4i_drv.c