diff --git a/drivers/w1/w1_int.c b/drivers/w1/w1_int.c index d220bce2cee4d242532cb4d6b84114b0e45ea662..f79e62e54e8d25bf21b6bba2850ae9b4b9e6c184 100644 --- a/drivers/w1/w1_int.c +++ b/drivers/w1/w1_int.c @@ -78,6 +78,7 @@ static struct w1_master * w1_alloc_dev(u32 id, int slave_count, int slave_ttl, memcpy(&dev->dev, device, sizeof(struct device)); dev_set_name(&dev->dev, "w1_bus_master%u", dev->id); snprintf(dev->name, sizeof(dev->name), "w1_bus_master%u", dev->id); + dev->dev.init_name = dev->name; dev->driver = driver;