WSL2-Linux-Kernel/drivers/video/fbdev/mmp
Christophe JAILLET b3a7a9ab65 fbdev: mmp: Fix deferred clk handling in mmphw_probe()
When dev_err_probe() is called, 'ret' holds the value of the previous
successful devm_request_irq() call.
'ret' should be assigned with a meaningful value before being used in
dev_err_probe().

While at it, use and return "PTR_ERR(ctrl->clk)" instead of a hard-coded
"-ENOENT" so that -EPROBE_DEFER is handled and propagated correctly.

Fixes: 81b6342056 ("fbdev: mmp: Make use of the helper function dev_err_probe()")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Helge Deller <deller@gmx.de>
2023-04-24 11:48:33 +02:00
..
fb treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
hw fbdev: mmp: Fix deferred clk handling in mmphw_probe() 2023-04-24 11:48:33 +02:00
panel treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 13 2019-05-21 11:28:45 +02:00
Kconfig video: fbdev: mmp: add COMPILE_TEST support 2020-01-03 14:27:35 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
core.c video: fbdev: mmp: replace usage of found with dedicated list iterator variable 2022-04-12 22:06:10 +02:00