diff options
Diffstat (limited to 'arch/arm/mach-integrator/impd1.c')
-rw-r--r-- | arch/arm/mach-integrator/impd1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/arm/mach-integrator/impd1.c b/arch/arm/mach-integrator/impd1.c index a1b153d1626c..a4bafee77a06 100644 --- a/arch/arm/mach-integrator/impd1.c +++ b/arch/arm/mach-integrator/impd1.c | |||
@@ -420,8 +420,7 @@ static int impd1_probe(struct lm_device *dev) | |||
420 | free_impd1: | 420 | free_impd1: |
421 | if (impd1 && impd1->base) | 421 | if (impd1 && impd1->base) |
422 | iounmap(impd1->base); | 422 | iounmap(impd1->base); |
423 | if (impd1) | 423 | kfree(impd1); |
424 | kfree(impd1); | ||
425 | release_lm: | 424 | release_lm: |
426 | release_mem_region(dev->resource.start, SZ_4K); | 425 | release_mem_region(dev->resource.start, SZ_4K); |
427 | return ret; | 426 | return ret; |