drm: Fix sysfs device confusion.
authorThomas Hellstrom <thellstrom@vmware.com>
Thu, 20 Aug 2009 09:02:31 +0000 (19:02 +1000)
committerDave Airlie <airlied@redhat.com>
Fri, 21 Aug 2009 00:01:59 +0000 (10:01 +1000)
commit08e4d534743f4e9af3602aebbc1cca9372762028
treed4b34d24a490019113ff5c2fa33662220b15353b
parente3b2415e281a97ade36d88404094a90cfea838c0
drm: Fix sysfs device confusion.

The drm sysfs class suspend / resume methods could not distinguish
between different device types wich could lead to illegal type casts.

Use struct device_type and make sure the class suspend / resume callbacks
are aware of those. There is no per device-type suspend / resume. Only
new-style PM.

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_sysfs.c