drm: clean dirty memory after device release
authorMa Ling <ling.ma@intel.com>
Thu, 16 Apr 2009 09:51:25 +0000 (17:51 +0800)
committerDave Airlie <airlied@redhat.com>
Mon, 20 Apr 2009 00:03:46 +0000 (10:03 +1000)
commit77d26dc9b9805f322f5a1f6e559b18ad66205bd9
treee09b35638a3d0fb9bd319498ec406ffd95a199eb
parentd9c6f546469f33f9aa48ae5991c33da8cd535b37
drm: clean dirty memory after device release

In current code we register/unregister connector object by
drm_sysfs_connector_add/remove function.

However under some cases, we need to dynamically register or unregister device
multiple times, so we have to go through register -> unregister ->register
routine.

Because after device_unregister function our memory is dirty, we need to do
clean operation in order to re-register the device, otherwise the system
will crash.  The patch intends to clean device after device release.

Signed-off-by: Ma Ling <ling.ma@intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_sysfs.c