]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
kobject: remove struct kobj_type from struct kset
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Oct 2007 16:11:44 +0000 (10:11 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Jan 2008 04:40:10 +0000 (20:40 -0800)
commit3514faca19a6fdc209734431c509631ea92b094e
treef6d102e6dec276f8e8d1044b47c74a02b901554f
parentc11c4154e7ff4cebfadad849b1e22689d759c3f4
kobject: remove struct kobj_type from struct kset

We don't need a "default" ktype for a kset.  We should set this
explicitly every time for each kset.  This change is needed so that we
can make ksets dynamic, and cleans up one of the odd, undocumented
assumption that the kset/kobject/ktype model has.

This patch is based on a lot of help from Kay Sievers.

Nasty bug in the block code was found by Dave Young
<hidave.darkstar@gmail.com>

Cc: Kay Sievers <kay.sievers@vrfy.org>
Cc: Dave Young <hidave.darkstar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
36 files changed:
arch/powerpc/platforms/pseries/power.c
arch/s390/hypfs/inode.c
arch/s390/kernel/ipl.c
block/genhd.c
drivers/acpi/bus.c
drivers/base/bus.c
drivers/base/class.c
drivers/base/core.c
drivers/base/firmware.c
drivers/base/hypervisor.c
drivers/base/sys.c
drivers/edac/edac_mc_sysfs.c
drivers/firmware/edd.c
drivers/firmware/efivars.c
drivers/parisc/pdc_stable.c
drivers/pci/hotplug/pci_hotplug_core.c
drivers/pci/hotplug/rpadlpar_sysfs.c
drivers/uio/uio.c
fs/configfs/mount.c
fs/debugfs/inode.c
fs/dlm/lockspace.c
fs/ecryptfs/main.c
fs/fuse/inode.c
fs/gfs2/locking/dlm/sysfs.c
fs/gfs2/sys.c
fs/namespace.c
fs/ocfs2/cluster/masklog.c
fs/ocfs2/cluster/sys.c
fs/sysfs/file.c
include/linux/kobject.h
kernel/ksysfs.c
kernel/module.c
kernel/params.c
kernel/power/main.c
mm/slub.c
security/inode.c