Driver core: allow devices in classes to have no parent
authorGreg Kroah-Hartman <gregkh@suse.de>
Wed, 28 Jun 2006 23:19:58 +0000 (16:19 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Sep 2006 04:08:38 +0000 (21:08 -0700)
commit64bb5d2c116478dba7501d2acf078ed74ba30c1f
treebd0f695cad51a0b9608d686ab2b0232a31d4b2ad
parentde0ff00d723fd821d372496e2c084805644aa5e1
Driver core: allow devices in classes to have no parent

This fixes an oops when a device is attached to a class, yet has no
"parent" device.  An example of this would be the "lo" device in the
network core.

We should create a "virtual" subdirectory under /sys/devices/ for these,
but no one seems to agree on a proper name for it yet...

Oh, and update my copyright on the driver core.

Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c