diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-05-30 11:42:11 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-07-22 00:55:03 -0400 |
commit | 3f9787046ea37a26170dc4439efa21f8d23a9978 (patch) | |
tree | 7daa536e4231f683f9ed95ea1e007dd9d09f846c /arch/arm/mach-integrator | |
parent | 2222c313e9371b6476787594bc5804c72cee2597 (diff) |
arm: bus_id -> dev_name() and dev_set_name() conversions
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'arch/arm/mach-integrator')
-rw-r--r-- | arch/arm/mach-integrator/impd1.c | 4 | ||||
-rw-r--r-- | arch/arm/mach-integrator/lm.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/arch/arm/mach-integrator/impd1.c b/arch/arm/mach-integrator/impd1.c index 619d05e6cf76..5a1588cf8242 100644 --- a/arch/arm/mach-integrator/impd1.c +++ b/arch/arm/mach-integrator/impd1.c | |||
@@ -393,9 +393,7 @@ static int impd1_probe(struct lm_device *dev) | |||
393 | if (!d) | 393 | if (!d) |
394 | continue; | 394 | continue; |
395 | 395 | ||
396 | snprintf(d->dev.bus_id, sizeof(d->dev.bus_id), | 396 | dev_set_name(&d->dev, "lm%x:%5.5lx", dev->id, idev->offset >> 12); |
397 | "lm%x:%5.5lx", dev->id, idev->offset >> 12); | ||
398 | |||
399 | d->dev.parent = &dev->dev; | 397 | d->dev.parent = &dev->dev; |
400 | d->res.start = dev->resource.start + idev->offset; | 398 | d->res.start = dev->resource.start + idev->offset; |
401 | d->res.end = d->res.start + SZ_4K - 1; | 399 | d->res.end = d->res.start + SZ_4K - 1; |
diff --git a/arch/arm/mach-integrator/lm.c b/arch/arm/mach-integrator/lm.c index 622cdc4212dd..f939c5091405 100644 --- a/arch/arm/mach-integrator/lm.c +++ b/arch/arm/mach-integrator/lm.c | |||
@@ -81,8 +81,10 @@ int lm_device_register(struct lm_device *dev) | |||
81 | dev->dev.release = lm_device_release; | 81 | dev->dev.release = lm_device_release; |
82 | dev->dev.bus = &lm_bustype; | 82 | dev->dev.bus = &lm_bustype; |
83 | 83 | ||
84 | snprintf(dev->dev.bus_id, sizeof(dev->dev.bus_id), "lm%d", dev->id); | 84 | ret = dev_set_name(&dev->dev, "lm%d", dev->id); |
85 | dev->resource.name = dev->dev.bus_id; | 85 | if (ret) |
86 | return ret; | ||
87 | dev->resource.name = dev_name(&dev->dev); | ||
86 | 88 | ||
87 | ret = request_resource(&iomem_resource, &dev->resource); | 89 | ret = request_resource(&iomem_resource, &dev->resource); |
88 | if (ret == 0) { | 90 | if (ret == 0) { |