]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[PATCH] Altix snsc: duplicate kobject fix
authorGreg Howard <ghoward@sgi.com>
Sun, 23 Apr 2006 17:10:42 +0000 (17:10 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 1 May 2006 19:03:43 +0000 (12:03 -0700)
Fix Altix system controller (snsc) device names to include the slot number
of the blade whose associated system controller is the target of the device
interface.  Including the slot number avoids a problem we're currently
having where slots within the same enclosure are attempting to create
multiple kobjects with identical names.

Signed-off-by: Greg Howard <ghoward@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/snsc.c

index 0e7d216e7eb0ce8e01db8f440710d8c8c2b09867..d22da98dfe48480ae1b6111d3fb1ce098d7d60f2 100644 (file)
@@ -391,7 +391,8 @@ scdrv_init(void)
                        format_module_id(devnamep, geo_module(geoid),
                                         MODULE_FORMAT_BRIEF);
                        devnamep = devname + strlen(devname);
-                       sprintf(devnamep, "#%d", geo_slab(geoid));
+                       sprintf(devnamep, "^%d#%d", geo_slot(geoid),
+                               geo_slab(geoid));
 
                        /* allocate sysctl device data */
                        scd = kmalloc(sizeof (struct sysctl_data_s),