powerpc/85xx: Fix declaration made after definition
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 23 Oct 2020 02:08:38 +0000 (13:08 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 19 Nov 2020 03:50:13 +0000 (14:50 +1100)
commitef78f2dd2398ce8ed9eeaab9c9f8af2e15f5d870
treee970545aea5d7bf42e738ee24697104a6adfca58
parent53f45ecc9cd04b4b963f3040f2a54c3baf03b229
powerpc/85xx: Fix declaration made after definition

Currently the clang build of corenet64_smp_defconfig fails with:

  arch/powerpc/platforms/85xx/corenet_generic.c:210:1: error:
  attribute declaration must precede definition
  machine_arch_initcall(corenet_generic, corenet_gen_publish_devices);

Fix it by moving the initcall definition prior to the machine
definition, and directly below the function it calls, which is the
usual style anyway.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20201023020838.3274226-1-mpe@ellerman.id.au
arch/powerpc/platforms/85xx/corenet_generic.c