diff options
Diffstat (limited to 'arch/arm/mach-omap2/pmu.c')
-rw-r--r-- | arch/arm/mach-omap2/pmu.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/mach-omap2/pmu.c b/arch/arm/mach-omap2/pmu.c index 9ace8eae7ee8..33c8846b4193 100644 --- a/arch/arm/mach-omap2/pmu.c +++ b/arch/arm/mach-omap2/pmu.c | |||
@@ -54,10 +54,7 @@ static int __init omap2_init_pmu(unsigned oh_num, char *oh_names[]) | |||
54 | WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n", | 54 | WARN(IS_ERR(omap_pmu_dev), "Can't build omap_device for %s.\n", |
55 | dev_name); | 55 | dev_name); |
56 | 56 | ||
57 | if (IS_ERR(omap_pmu_dev)) | 57 | return PTR_RET(omap_pmu_dev); |
58 | return PTR_ERR(omap_pmu_dev); | ||
59 | |||
60 | return 0; | ||
61 | } | 58 | } |
62 | 59 | ||
63 | static int __init omap_init_pmu(void) | 60 | static int __init omap_init_pmu(void) |