]> git.dujemihanovic.xyz Git - u-boot.git/commit
video: mxsfb: fix clk_get_by_name() return value check
authorGiulio Benetti <giulio.benetti@benettiengineering.com>
Sat, 23 Oct 2021 22:34:42 +0000 (00:34 +0200)
committerAnatolij Gustschin <agust@denx.de>
Sun, 26 Dec 2021 23:30:37 +0000 (00:30 +0100)
commitf36b3f8f174f0b4168121b99db060d53491c5922
tree446702ebeb3c99d0591b5ede37773fd72ba533b5
parent578b479affa4570a3fcfca40f2b69f503880a8c9
video: mxsfb: fix clk_get_by_name() return value check

If clk_get_by_name() returns 0 it means it executed successfully while now
we consider it as an error. So let's check if return value is negative to
be an error. Otherwise this prevents "axi" and "disp_axi" to be enabled.

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
drivers/video/mxsfb.c