Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4ae8aeae authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds
Browse files

newport_con warning fix



drivers/video/console/newport_con.c: In function `newport_console_init':
drivers/video/console/newport_con.c:743: warning: return makes integer from pointer without a cast

Although one wonders whether that should have been -ENODEV...

Cc: "Antonino A. Daplas" <adaplas@pol.net>
Cc: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0aa42632
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -738,9 +738,8 @@ const struct consw newport_con = {
#ifdef MODULE
static int __init newport_console_init(void)
{

	if (!sgi_gfxaddr)
		return NULL;
		return 0;

	if (!npregs)
		npregs = (struct newport_regs *)/* ioremap cannot fail */