diff options
Diffstat (limited to 'arch/powerpc/kernel/ppc970-pmu.c')
| -rw-r--r-- | arch/powerpc/kernel/ppc970-pmu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/kernel/ppc970-pmu.c b/arch/powerpc/kernel/ppc970-pmu.c index 833097ac45dc..75dccb71a043 100644 --- a/arch/powerpc/kernel/ppc970-pmu.c +++ b/arch/powerpc/kernel/ppc970-pmu.c | |||
| @@ -488,8 +488,9 @@ static struct power_pmu ppc970_pmu = { | |||
| 488 | 488 | ||
| 489 | static int init_ppc970_pmu(void) | 489 | static int init_ppc970_pmu(void) |
| 490 | { | 490 | { |
| 491 | if (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970") | 491 | if (!cur_cpu_spec->oprofile_cpu_type || |
| 492 | && strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970MP")) | 492 | (strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970") |
| 493 | && strcmp(cur_cpu_spec->oprofile_cpu_type, "ppc64/970MP"))) | ||
| 493 | return -ENODEV; | 494 | return -ENODEV; |
| 494 | 495 | ||
| 495 | return register_power_pmu(&ppc970_pmu); | 496 | return register_power_pmu(&ppc970_pmu); |
