Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fbdev: au1100fb: Check return value of clk_enable() in .resume()

Check the return value of clk_enable() in au1100fb_drv_resume() and
return the error on failure.
This ensures the system is aware of the resume failure and can track
its state accurately.

Signed-off-by: Chen Ni <nichen@iscas.ac.cn>
Acked-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Helge Deller <deller@gmx.de>

authored by

Chen Ni and committed by
Helge Deller
cbfb9c71 8e9bf8b9

+4 -1
+4 -1
drivers/video/fbdev/au1100fb.c
··· 567 567 int au1100fb_drv_resume(struct platform_device *dev) 568 568 { 569 569 struct au1100fb_device *fbdev = platform_get_drvdata(dev); 570 + int ret; 570 571 571 572 if (!fbdev) 572 573 return 0; 573 574 574 575 memcpy(fbdev->regs, &fbregs, sizeof(struct au1100fb_regs)); 575 576 576 - clk_enable(fbdev->lcdclk); 577 + ret = clk_enable(fbdev->lcdclk); 578 + if (ret) 579 + return ret; 577 580 578 581 /* Unblank the LCD */ 579 582 au1100fb_fb_blank(VESA_NO_BLANKING, &fbdev->info);