Skip to content

Commit

Permalink
newport_con warning fix
Browse files Browse the repository at this point in the history
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: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Aug 23, 2007
1 parent 0aa4263 commit 4ae8aea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/video/console/newport_con.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 4ae8aea

Please sign in to comment.