projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e4c61e
)
drm/sysfs: don't try an unregister if not registered
author
Dave Airlie
<airlied@redhat.com>
Wed, 4 Jun 2008 03:16:49 +0000
(13:16 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Wed, 4 Jun 2008 03:16:49 +0000
(13:16 +1000)
linux-core/drm_sysfs.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_sysfs.c
b/linux-core/drm_sysfs.c
index 01a3c047df7f373324d03a50fda2608a9dc24bb0..c148256a3403cbac4f9d0a98e451788963aa74da 100644
(file)
--- a/
linux-core/drm_sysfs.c
+++ b/
linux-core/drm_sysfs.c
@@
-301,6
+301,9
@@
void drm_sysfs_connector_remove(struct drm_connector *connector)
{
int i;
+ if (!device_is_registered(&connector->kdev))
+ return;
+
DRM_DEBUG("removing \"%s\" from sysfs\n", drm_get_connector_name(connector));
for (i = 0; i < ARRAY_SIZE(connector_attrs); i++)
device_remove_file(&connector->kdev, &connector_attrs[i]);