OSDN Git Service

drm: shmobile: Perform initialization/cleanup at probe/remove time
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 12 Dec 2016 09:28:47 +0000 (11:28 +0200)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 17 Feb 2017 13:23:14 +0000 (15:23 +0200)
commit8f1597c8f1a58830b67a033309e4b141ee99e379
tree8133b567bc95d4998da169a96783061e787e19d3
parent9ca70356a9260403c1bda40d942935e55d00c11c
drm: shmobile: 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@ideasonboard.com>
Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/shmobile/shmob_drm_crtc.c
drivers/gpu/drm/shmobile/shmob_drm_drv.c