]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
powerpc/p1022ds: set the clock-frequency prop only if the clock is enabled
authorTimur Tabi <timur@freescale.com>
Wed, 8 Jun 2011 17:10:49 +0000 (12:10 -0500)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 9 Jun 2011 20:53:38 +0000 (15:53 -0500)
commit29b83d983392fcb5378b915ee2112bb48b8c05be
tree809db6af1e5b6289b2685a381455875e507d49ec
parent9571865e0d32b1bcf8a6625497d1cd5d4bbad354
powerpc/p1022ds: set the clock-frequency prop only if the clock is enabled

The clock-frequency property in an audio codec's device tree node is set to
the input clock frequency for that codec.  On the Freescale P1022DS board,
the input clock is enabled only if the hwconfig 'audclk' option is set.
Therefore, the property should only be set in the device tree if the clock
is actually enabled.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
board/freescale/p1022ds/p1022ds.c