asiliantfb: add missing return statement
PATCH 1/1 asiliantfb: add missing return statement
Commit 032220ba (asiliantfb: fix cmap memory leaks) changed the function init_asiliant from void to int, resulting in the following compile warning:
drivers/video/asiliantfb.c: In function ‘init_asiliant’:drivers/video/asiliantfb.c:536: warning: control reaches end of non-void function
Fix the warning by returning 0.
Signed-off-by Vlada Perić <[email protected]>
CC Andres Salomon <[email protected]>
--- drivers/video/asiliantfb.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/video/asiliantfb.c +0 -0
@@ -533,6 +533,7 @@ static int __devinit init_asiliant(struct fb_info
*p, unsigned long addr)
writeb(0xff, mmio_base + 0x78c);
chips_hw_init(p);
+ return 0;
}
static int __devinit
Signature · 1 line
1.6.2.2