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)
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>

No differences found