drm/sis: track obj->drm_fd relations in the driver
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 25 Oct 2011 14:32:34 +0000 (16:32 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Dec 2011 23:33:15 +0000 (00:33 +0100)
commitfdc0b8a63c1124bb025a2846d41531a123845740
tree3913d201022d789970b6d07355864fece7455ff3
parent4cf73129cbe001b41be2f8b56f763fbf3acaa4ce
drm/sis: track obj->drm_fd relations in the driver

By attach a driver private struct to each open drm fd.

Because we steal the owner_list from drm_sman until things settle,
use list_move instead of list_add.

This requires to export a drm_sman function temporarily before
drm_sman will die for real completely.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_sman.c
drivers/gpu/drm/sis/sis_drv.c
drivers/gpu/drm/sis/sis_mm.c
include/drm/drm_sman.h
include/drm/sis_drm.h