diff options
Diffstat (limited to 'arch/arm/mach-mvebu')
-rw-r--r-- | arch/arm/mach-mvebu/pmsu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/pmsu.c b/arch/arm/mach-mvebu/pmsu.c index 0ca285fdd569..0b617ae3ceb9 100644 --- a/arch/arm/mach-mvebu/pmsu.c +++ b/arch/arm/mach-mvebu/pmsu.c | |||
@@ -424,9 +424,9 @@ static int __init armada_xp_pmsu_cpufreq_init(void) | |||
424 | } | 424 | } |
425 | 425 | ||
426 | clk = clk_get(cpu_dev, 0); | 426 | clk = clk_get(cpu_dev, 0); |
427 | if (!clk) { | 427 | if (IS_ERR(clk)) { |
428 | pr_err("Cannot get clock for CPU %d\n", cpu); | 428 | pr_err("Cannot get clock for CPU %d\n", cpu); |
429 | return -ENODEV; | 429 | return PTR_ERR(clk); |
430 | } | 430 | } |
431 | 431 | ||
432 | /* | 432 | /* |