diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/slot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c index de7994a8b32a..b703b097ce10 100644 --- a/drivers/pci/slot.c +++ b/drivers/pci/slot.c @@ -116,7 +116,7 @@ static int rename_slot(struct pci_slot *slot, const char *name) int result = 0; char *slot_name; - if (strcmp(kobject_name(&slot->kobj), name) == 0) + if (strcmp(pci_slot_name(slot), name) == 0) return result; slot_name = make_slot_name(name); |