diff options
Diffstat (limited to 'arch/arm/mach-integrator/impd1.c')
-rw-r--r-- | arch/arm/mach-integrator/impd1.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/arch/arm/mach-integrator/impd1.c b/arch/arm/mach-integrator/impd1.c index 62e653a3ea1a..0a7b3267c8d8 100644 --- a/arch/arm/mach-integrator/impd1.c +++ b/arch/arm/mach-integrator/impd1.c | |||
@@ -23,8 +23,8 @@ | |||
23 | 23 | ||
24 | #include <asm/io.h> | 24 | #include <asm/io.h> |
25 | #include <asm/hardware/icst525.h> | 25 | #include <asm/hardware/icst525.h> |
26 | #include <asm/arch/lm.h> | 26 | #include <mach/lm.h> |
27 | #include <asm/arch/impd1.h> | 27 | #include <mach/impd1.h> |
28 | #include <asm/sizes.h> | 28 | #include <asm/sizes.h> |
29 | 29 | ||
30 | #include "clock.h" | 30 | #include "clock.h" |
@@ -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; |
@@ -407,8 +405,7 @@ static int impd1_probe(struct lm_device *dev) | |||
407 | 405 | ||
408 | ret = amba_device_register(d, &dev->resource); | 406 | ret = amba_device_register(d, &dev->resource); |
409 | if (ret) { | 407 | if (ret) { |
410 | printk("unable to register device %s: %d\n", | 408 | dev_err(&d->dev, "unable to register device: %d\n"); |
411 | d->dev.bus_id, ret); | ||
412 | kfree(d); | 409 | kfree(d); |
413 | } | 410 | } |
414 | } | 411 | } |