Driver core: move the static kobject out of struct driver
This patch removes the kobject, and a few other driver-core-only fields
out of struct driver and into the driver core only. Now drivers can be
safely create on the stack or statically (like they currently are.)
Cc: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by:
Greg Kroah-Hartman <gregkh@suse.de>
Showing
- drivers/base/base.h 8 additions, 0 deletionsdrivers/base/base.h
- drivers/base/bus.c 39 additions, 32 deletionsdrivers/base/bus.c
- drivers/base/dd.c 12 additions, 12 deletionsdrivers/base/dd.c
- drivers/base/driver.c 26 additions, 14 deletionsdrivers/base/driver.c
- drivers/base/module.c 6 additions, 6 deletionsdrivers/base/module.c
- drivers/base/platform.c 1 addition, 1 deletiondrivers/base/platform.c
- include/linux/device.h 7 additions, 9 deletionsinclude/linux/device.h
Loading
Please register or sign in to comment