lkml.org 
[lkml]   [2004]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
SubjectRe: [PATCH] PCI Hotplug fixes for 2.6.4-rc1
Date
From
ChangeSet 1.1622, 2004/03/01 16:18:12-08:00, greg@kroah.com

PCI Hotplug: fix stupid directory name of "pci_hotplug_slots" to be just "slots"


drivers/pci/hotplug/pci_hotplug_core.c | 15 +++++++++++++--
1 files changed, 13 insertions(+), 2 deletions(-)


diff -Nru a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c
--- a/drivers/pci/hotplug/pci_hotplug_core.c Tue Mar 2 19:42:42 2004
+++ b/drivers/pci/hotplug/pci_hotplug_core.c Tue Mar 2 19:42:42 2004
@@ -104,8 +104,19 @@
.release = &hotplug_slot_release,
};

-decl_subsys(pci_hotplug_slots, &hotplug_slot_ktype, NULL);
-
+/*
+ * We create a struct subsystem on our own and not use decl_subsys so
+ * we can have a sane name "slots" in sysfs, yet still keep a good
+ * global variable name "pci_hotplug_slots_subsys.
+ * If the decl_subsys() #define ever changes, this declaration will
+ * need to be update to make sure everything is initialized properly.
+ */
+struct subsystem pci_hotplug_slots_subsys = {
+ .kset = {
+ .kobj = { .name = "slots" },
+ .ktype = &hotplug_slot_ktype,
+ }
+};

/* these strings match up with the values in pci_bus_speed */
static char *pci_bus_speed_strings[] = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.067 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site