drm/sysfs: protect sysfs removal code against being run twice.
authorDave Airlie <airlied@redhat.com>
Mon, 20 Feb 2012 14:15:02 +0000 (14:15 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 15 Mar 2012 13:35:31 +0000 (13:35 +0000)
commit1828fe6c5f593b835197edd30a28d80635238ab3
tree00f500f5553350622467c3778a69e7ae8143ed28
parentce880cb860f36694d2cdebfac9e6ae18176fe4c4
drm/sysfs: protect sysfs removal code against being run twice.

a step towards correct hot unplug for USB devices, we need to
remove the userspace facing bits at the unplug time for correct
udev operation.

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