]> git.baikalelectronics.ru Git - kernel.git/commit
drm: rcar-du: Perform initialization/cleanup at probe/remove time
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 28 Sep 2015 15:39:53 +0000 (18:39 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 20 Feb 2016 00:58:50 +0000 (02:58 +0200)
commita0998cae109dfdaad9b1743f209b63201d65e976
treea352944cf1a9d8553bc9ddbd335ac0981ced061f
parente2b4434c0585400c964132033b1fb0b6a1bcd2f3
drm: rcar-du: Perform initialization/cleanup at probe/remove time

The drm driver .load() operation is prone to race conditions as it
initializes the driver after registering the device nodes. Its usage is
deprecated, inline it in the probe function and call drm_dev_alloc() and
drm_dev_register() explicitly.

For consistency inline the .unload() handler in the remove function as
well.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/rcar-du/rcar_du_drv.c
drivers/gpu/drm/rcar-du/rcar_du_hdmicon.c
drivers/gpu/drm/rcar-du/rcar_du_lvdscon.c
drivers/gpu/drm/rcar-du/rcar_du_vgacon.c