]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Don't print cpu_spec->cpu_name if it's NULL
authorNicholas Piggin <npiggin@gmail.com>
Tue, 9 May 2017 03:17:08 +0000 (13:17 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 9 May 2017 12:56:03 +0000 (22:56 +1000)
commitf7e07f6828155fdfe9416bd1da0bc33a803f8b93
tree76640ad23f31cf1fc90623dc56058836f6247c1f
parentce2dfbb93402f2b6c679a33274457836b3a280b4
powerpc: Don't print cpu_spec->cpu_name if it's NULL

Currently we assume that if the cpu_spec has a pvr_mask then it must also have a
cpu_name. But that will change in a subsequent commit when we do CPU feature
discovery via the device tree, so check explicitly if cpu_name is NULL.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/setup-common.c