Driver core: Remove unneeded get_{device,driver}() calls.
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 31 Jan 2008 09:39:38 +0000 (10:39 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sat, 2 Feb 2008 23:14:49 +0000 (15:14 -0800)
commit0c98b19fe571ede1f14bd95b855bcbe2cca99bcf
tree388875be014f29a9f68c89144925d68542c42a4a
parent44414e14af3f18fc8c1b94e259cd760366f665ee
Driver core: Remove unneeded get_{device,driver}() calls.

Driver core: Remove unneeded get_{device,driver}() calls.

Code trying to add/remove attributes must hold a reference to
the device resp. driver anyway, so let's remove those reference
count games.

Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/core.c
drivers/base/driver.c