Commit 739cf3a2 authored by Kay Sievers's avatar Kay Sievers Committed by Greg Kroah-Hartman

hwmon: struct device - replace bus_id with dev_name(), dev_set_name()

Signed-off-by: default avatarKay Sievers <kay.sievers@vrfy.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent cd3ed6b4
...@@ -76,7 +76,7 @@ void hwmon_device_unregister(struct device *dev) ...@@ -76,7 +76,7 @@ void hwmon_device_unregister(struct device *dev)
{ {
int id; 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); device_unregister(dev);
spin_lock(&idr_lock); spin_lock(&idr_lock);
idr_remove(&hwmon_idr, id); idr_remove(&hwmon_idr, id);
......
...@@ -190,7 +190,7 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id) ...@@ -190,7 +190,7 @@ lm75_probe(struct i2c_client *client, const struct i2c_device_id *id)
} }
dev_info(&client->dev, "%s: sensor '%s'\n", dev_info(&client->dev, "%s: sensor '%s'\n",
data->hwmon_dev->bus_id, client->name); dev_name(data->hwmon_dev), client->name);
return 0; return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment