commit | 08e4d534743f4e9af3602aebbc1cca9372762028 | [log] [tgz] |
---|---|---|
author | Thomas Hellstrom <thellstrom@vmware.com> | Thu Aug 20 19:02:31 2009 +1000 |
committer | Dave Airlie <airlied@redhat.com> | Fri Aug 21 10:01:59 2009 +1000 |
tree | d4b34d24a490019113ff5c2fa33662220b15353b | |
parent | e3b2415e281a97ade36d88404094a90cfea838c0 [diff] |
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>