MLK-12614 mxc IPUv3: common: Refactor pixel clock tree register implementation
authorLiu Ying <victor.liu@nxp.com>
Fri, 1 Apr 2016 07:27:27 +0000 (15:27 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:51:47 +0000 (14:51 -0500)
commit9fc5a1911b05a13805cc8e7e78d47c6202786485
tree256d5a13a4ae9758ad4075911239198437ee06f9
parent1682daf40f3f42fdcf5dbd710a8259b0a8f74239
MLK-12614 mxc IPUv3: common: Refactor pixel clock tree register implementation

This patch removes boilerplate code to register clocks for two DIs of one IPU.
Also, the char strings for storing the pixel clock parent names are wrongly
placed in the kernel rodata section, which will be overwritten when clocks
are registered.  This patch moves the problematic strings to stack.  Since
clk_register() will cache his own version from non-kernel-rodata space, this
may fix the issue.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
drivers/mxc/ipu3/ipu_common.c