drm: omapdrm: 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@ideasonboard.com>
Mon, 19 Dec 2016 09:33:45 +0000 (11:33 +0200)
commit2f95bc6d324a93b2411bcc5defe4d4414c45f325
tree5352c7a2af0b5a2b276179c2ffee89e19dfe98b4
parente57e17cc40d3297fbb279c6c0e9613bdc81ef893
drm: omapdrm: 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>
Reviewed-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/gpu/drm/omapdrm/omap_connector.c
drivers/gpu/drm/omapdrm/omap_drv.c