Skip to content

Commit

Permalink
hwmon: struct device - replace bus_id with dev_name(), dev_set_name()
Browse files Browse the repository at this point in the history
Signed-off-by: Kay Sievers <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
kaysievers authored and gregkh committed Jan 6, 2009
1 parent cd3ed6b commit 739cf3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/hwmon/hwmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ void hwmon_device_unregister(struct device *dev)
{
int id;

if (likely(sscanf(dev->bus_id, HWMON_ID_FORMAT, &id) == 1)) {
if (likely(sscanf(dev_name(dev), HWMON_ID_FORMAT, &id) == 1)) {
device_unregister(dev);
spin_lock(&idr_lock);
idr_remove(&hwmon_idr, id);
Expand Down
2 changes: 1 addition & 1 deletion drivers/hwmon/lm75.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
}

dev_info(&client->dev, "%s: sensor '%s'\n",
data->hwmon_dev->bus_id, client->name);
dev_name(data->hwmon_dev), client->name);

return 0;

Expand Down

0 comments on commit 739cf3a

Please sign in to comment.