]> git.baikalelectronics.ru Git - uboot.git/commit
video: stm32: stm32_ltdc: fix the check of return value of clk_set_rate()
authorGabriel Fernandez <gabriel.fernandez@foss.st.com>
Tue, 1 Feb 2022 13:02:14 +0000 (14:02 +0100)
committerPatrice Chotard <patrice.chotard@foss.st.com>
Tue, 15 Mar 2022 08:11:11 +0000 (09:11 +0100)
commitc1a3c84297fae288168e7b0130b1d329f4937244
tree85dc9df7b0c6f60f98f31298e8c40d60e85e3236
parentce321d8375b281bb0ccd028427572871ff17bbc4
video: stm32: stm32_ltdc: fix the check of return value of clk_set_rate()

The clk_set_rate() function returns rate as an 'ulong' not
an 'int' and rate > 0 by default.

This patch avoids to display the associated warning when
the set rate function returns the new frequency.

Fixes: 14dfa9273e59 ("video: stm32: stm32_ltdc: add bridge to display controller")
Signed-off-by: Gabriel Fernandez <gabriel.fernandez@foss.st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
Reviewed-by: Patrice Chotard <patrice.chotard@foss.st.com>
drivers/video/stm32/stm32_ltdc.c