Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 72927
b: refs/heads/master
c: 60b8cab
h: refs/heads/master
i:
  72925: 49e248c
  72923: 2c049e9
  72919: 5b366a7
  72911: 4197d55
  72895: dd86fe6
v: v3
  • Loading branch information
Kay Sievers authored and Greg Kroah-Hartman committed Oct 31, 2007
1 parent a209afc commit e8bb5b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 78e9d3678c8362aad2b2a48c242966aebb089dbd
refs/heads/master: 60b8cabd8e8a1d266aa8778957691cd925673083
6 changes: 3 additions & 3 deletions trunk/drivers/base/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1228,18 +1228,18 @@ int device_rename(struct device *dev, char *new_name)
sysfs_remove_link(&dev->parent->kobj, old_class_name);
}
}
#endif

#else
if (dev->class) {
sysfs_remove_link(&dev->class->subsys.kobj, old_device_name);
error = sysfs_create_link(&dev->class->subsys.kobj, &dev->kobj,
dev->bus_id);
if (error) {
/* Uh... how to unravel this if restoring can fail? */
dev_err(dev, "%s: sysfs_create_symlink failed (%d)\n",
__FUNCTION__, error);
}
}
#endif

out:
put_device(dev);

Expand Down

0 comments on commit e8bb5b3

Please sign in to comment.