OSDN Git Service

sysfs registration/teardown fixups
authorJesse Barnes <jbarnes@jbarnes-t61.(none)>
Thu, 5 Jun 2008 22:58:43 +0000 (15:58 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Thu, 5 Jun 2008 22:58:43 +0000 (15:58 -0700)
commit03bf1fba67413f381d2a548fe08bd634a48fcc48
tree703cb4bd2b0b5b134f9848ed84c1f36951843a12
parente90716671d7a5dabf13c22a339f750dba77f438a
sysfs registration/teardown fixups

A check in drm_sysfs_connector_remove was supposed to allow it to be called
even with unregistered objects, to make cleanup paths a little simpler.
However, device_is_regsitered didn't always seem to return what we thought it
would, so we'd sometimes end up leaving objects lying around rather than
unregistering them.

Fix this situation up by requiring devices to be registered before being
removed.  Any problems resulting from this change should be easier to track
down than the alternative (which is leaving kobjects registered after unload).
linux-core/drm_sysfs.c
linux-core/intel_crt.c
linux-core/intel_lvds.c
linux-core/intel_sdvo.c