powerpc/fsl_soc: improve and simplify get_brgfreq
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 29 Oct 2016 14:28:25 +0000 (16:28 +0200)
committerScott Wood <oss@buserror.net>
Wed, 23 Nov 2016 07:23:36 +0000 (01:23 -0600)
commit47a48a92102b7e5a33356f87ca1b4873d2fce2f1
treef46328f41352d32450de396f4a06d754790c41d7
parent5bda6c0eb7cddc9e109c9f79d500288af0704e7a
powerpc/fsl_soc: improve and simplify get_brgfreq

Use of_property_read_u32 instead of the generic of_get_property to
simplify the code. In addition move the declaration of brgfreq
into get_brgfreq because it's private to this function.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
[scottwood: minor whitespace fixes]
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/sysdev/fsl_soc.c