]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/fsl_soc: improve and simplify get_baudrate
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 29 Oct 2016 14:29:04 +0000 (16:29 +0200)
committerScott Wood <oss@buserror.net>
Wed, 23 Nov 2016 07:23:37 +0000 (01:23 -0600)
commit0f236988e9ec13d0ee49f580f945d594bd7989a7
tree2abf752f7a982638d434b6ce2c99ea605f48801b
parent47a48a92102b7e5a33356f87ca1b4873d2fce2f1
powerpc/fsl_soc: improve and simplify get_baudrate

Use of_property_read_u32 instead of the generic of_get_property to
simplify the code. In addition move the declaration of fs_baudrate
into get_baudrate 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