Driver core: fix SYSF_DEPRECATED breakage for nested classdevs
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 7 Oct 2007 16:22:21 +0000 (12:22 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sun, 7 Oct 2007 23:42:22 +0000 (16:42 -0700)
commit3eb215de26e6e94bf5fed9cb77230c383b30e53b
tree3500a575ea6458bf9f256427abebfa69458db151
parent85923b124624eb49ebef4731bb6b5670e792ff57
Driver core: fix SYSF_DEPRECATED breakage for nested classdevs

We should only reparent to a class former class devices that
form the base of class hierarchy. Nested devices should still
grow from their real parents.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Tested-by: Andrey Borzenkov <arvidjaar@mail.ru>
Tested-by: Anssi Hannula <anssi.hannula@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/base/core.c