powerpc/of_platform: Use builtin_platform_driver
authorGeliang Tang <geliangtang@gmail.com>
Wed, 23 Nov 2016 14:58:56 +0000 (22:58 +0800)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 25 Nov 2016 03:07:51 +0000 (14:07 +1100)
commitebb242d56bbe14af6ea25cf5e45440df4c26b4b1
treee9c351ad9be26df2e8661250f42173885bac2584
parent7184bc2ddb15d9539c701668d6a5be1574efa6a5
powerpc/of_platform: Use builtin_platform_driver

Use builtin_platform_driver() helper to simplify the code.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Acked-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/of_platform.c