]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fsl_soc: improve and simplify fsl_get_sys_freq
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 29 Oct 2016 14:27:14 +0000 (16:27 +0200)
committerScott Wood <oss@buserror.net>
Wed, 23 Nov 2016 07:23:36 +0000 (01:23 -0600)
commit5e65cd052a6f49c4f6f19f69ef722ee17f5268f4
tree09aaed794c0ec0c6330e41763e2f7ad13e6b7bf4
parentf49572bc0289532110cd6d33e28b69a189cbbdc7
powerpc/fsl_soc: improve and simplify fsl_get_sys_freq

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

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