]> asedeno.scripts.mit.edu Git - linux.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)
commit02b92adbe33e6dbd15dc6e32540b22f47c4ff0a2
tree5ac7d625b794b45b8544cd83908ea82de4fbc445
parent71adf60f0a925c0e0c7dc2d0311fe40b825be737
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: 9026e0d122ac ("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