aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/slot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c
index b6ee352ae459..4dd1c3e157ae 100644
--- a/drivers/pci/slot.c
+++ b/drivers/pci/slot.c
@@ -121,7 +121,7 @@ static int rename_slot(struct pci_slot *slot, const char *name)
121 int result = 0; 121 int result = 0;
122 char *slot_name; 122 char *slot_name;
123 123
124 if (strcmp(kobject_name(&slot->kobj), name) == 0) 124 if (strcmp(pci_slot_name(slot), name) == 0)
125 return result; 125 return result;
126 126
127 slot_name = make_slot_name(name); 127 slot_name = make_slot_name(name);