]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
video: ipu: initialize g_ipu_clk, g_ldb_clk statically KARO-TX6UL-2015-10-23
authorLothar Waßmann <LW@KARO-electronics.de>
Fri, 23 Oct 2015 10:46:03 +0000 (12:46 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 23 Oct 2015 10:46:03 +0000 (12:46 +0200)
commite1be59fc1a959a917749ecf24834acdc6e2d70e7
tree58605341f2be82b54ed107041d34d6c742ef459e
parentfdd6994fe0b1ed4e75ed47f6a7d056dea753ef2a
video: ipu: initialize g_ipu_clk, g_ldb_clk statically

When the FB driver has not been initialized, booting Linux will hang
the system when ipuv3_fb_shutdown() is called from arch_preboot_os()
because clk_enable(g_ipu_clk) is a NOP with g_ipu_clk == NULL.
There is no need to initialize these variables at runtime, so use
static initialization to prevent this problem.
drivers/video/ipu_common.c