]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaf40c61845733ce02533636def2f5ff1c74c52d4
treed4b34d24a490019113ff5c2fa33662220b15353b
parent46219c635e46458ac3e6ce310107821e9d3cfe56
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