]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
fbdev: mmp: fix value check in mmphw_probe()
authorYuanjun Gong <ruc_gongyuanjun@163.com>
Thu, 27 Jul 2023 17:03:18 +0000 (01:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 26 Aug 2023 12:23:31 +0000 (14:23 +0200)
commitbb70e2b70f8d917dd30d3b575faffc707976ef28
treed762098c2e3d755d0cdab89543e65e35a152b96c
parent184f1b68bb99b5927ab63aefb4a58ec2f9cc6ca9
fbdev: mmp: fix value check in mmphw_probe()

commit 0872b2c0abc0e84ac82472959c8e14e35277549c upstream.

in mmphw_probe(), check the return value of clk_prepare_enable()
and return the error code if clk_prepare_enable() returns an
unexpected value.

Fixes: d63028c38905 ("video: mmp display controller support")
Signed-off-by: Yuanjun Gong <ruc_gongyuanjun@163.com>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/video/fbdev/mmp/hw/mmp_ctrl.c