]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf6a4b121ffbbeafcdb97978f88067e118e032307
tree388875be014f29a9f68c89144925d68542c42a4a
parent72a5a907afd41db68037ad60e1c5db4cb0573136
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