diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-04-11 18:07:55 -0700 |
---|---|---|
committer | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2016-06-29 16:49:08 +0200 |
commit | 5d491c1d43f00ddf9c9414c283a96b71fff23c22 (patch) | |
tree | 182b9ce487d310f741d39f49b04dac0524a6be4c /sound/usb | |
parent | 74e367820da05b63c98460a9c3e91abab6d60b94 (diff) |
video: tegra: fix build with enabled tegra lvds driver
This fixes the following build time error in case CONFIG_TEGRA_LVDS is enabled:
drivers/video/tegra/dc/sor.h: In function 'tegra_sor_clk_enable':
drivers/video/tegra/dc/sor.h:180:2: error: implicit declaration of function 'clk_prepare_enable' [-Werror=implicit-function-declaration]
clk_prepare_enable(sor->sor_clk);
^
drivers/video/tegra/dc/sor.h: In function 'tegra_sor_clk_disable':
drivers/video/tegra/dc/sor.h:185:2: error: implicit declaration of function 'clk_disable_unprepare' [-Werror=implicit-function-declaration]
clk_disable_unprepare(sor->sor_clk);
^
In file included from drivers/video/tegra/dc/dc_priv_defs.h:26:0,
from drivers/video/tegra/dc/dc_priv.h:23,
from drivers/video/tegra/dc/lvds.c:23:
include/linux/clk.h: At top level:
include/linux/clk.h:330:19: error: static declaration of 'clk_prepare_enable' follows non-static declaration
static inline int clk_prepare_enable(struct clk *clk)
^
In file included from drivers/video/tegra/dc/lvds.h:20:0,
from drivers/video/tegra/dc/lvds.c:22:
drivers/video/tegra/dc/sor.h:180:2: note: previous implicit declaration of 'clk_prepare_enable' was here
clk_prepare_enable(sor->sor_clk);
^
In file included from drivers/video/tegra/dc/dc_priv_defs.h:26:0,
from drivers/video/tegra/dc/dc_priv.h:23,
from drivers/video/tegra/dc/lvds.c:23:
include/linux/clk.h:345:20: error: conflicting types for 'clk_disable_unprepare' [-Werror]
static inline void clk_disable_unprepare(struct clk *clk)
^
include/linux/clk.h:345:20: error: static declaration of 'clk_disable_unprepare' follows non-static declaration
In file included from drivers/video/tegra/dc/lvds.h:20:0,
from drivers/video/tegra/dc/lvds.c:22:
drivers/video/tegra/dc/sor.h:185:2: note: previous implicit declaration of 'clk_disable_unprepare' was here
clk_disable_unprepare(sor->sor_clk);
^
Final patch taken from Manoj Gupta's post on NVIDIA's public embedded systems forum:
https://devtalk.nvidia.com/default/topic/822612/jetson-tk1/-issue-lvds-panel-enabled-effect-hdmi-out-image-pull-down-menu-items/post/4663817/#4663817
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@toradex.com>
Acked-by: Dominik Sliwa <dominik.sliwa@toradex.com>
Diffstat (limited to 'sound/usb')
0 files changed, 0 insertions, 0 deletions