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

Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Kay Sievers 2009-01-06 10:44:41 -08:00 committed by Greg Kroah-Hartman
parent cd3ed6b4dd
commit 739cf3a269
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;