]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Driver core: move dev_get/set_drvdata to drivers/base/dd.c
authorGreg Kroah-Hartman <gregkh@suse.de>
Mon, 11 May 2009 21:16:57 +0000 (14:16 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 16:50:47 +0000 (09:50 -0700)
commitb4028437876866aba4747a655ede00f892089e14
treef6c34315c3e6d2899a894f028bd6f9899e80cd01
parent2023c610dc54a4f4130b0494309a9bd668ca3df8
Driver core: move dev_get/set_drvdata to drivers/base/dd.c

No one should directly access the driver_data field, so remove the field
and make it private.  We dynamically create the private field now if it
is needed, to handle drivers that call get/set before they are
registered with the driver core.

Also update the copyright notices on these files while we are there.

Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/base.h
drivers/base/core.c
drivers/base/dd.c
include/linux/device.h