Driver core: Clarify device cleanup.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Wed, 3 Sep 2008 16:26:40 +0000 (18:26 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 16 Oct 2008 16:24:48 +0000 (09:24 -0700)
commit5739411acbaa63a6c22c91e340fdcdbcc7d82a51
tree1f54912f36211076a341067395599ec449bc1ae5
parent9cf899d12583082c77a0fcc758f3179b440518ee
Driver core: Clarify device cleanup.

Make the comments on how to use device_initialize(), device_add()
and device_register() a bit clearer - in particular, explicitly
note that put_device() must be used once we tried to add the device
to the hierarchy.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c