mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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" <[email protected]> Cc: Ralf Baechle <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
0aa42632d3
commit
4ae8aeae47
1 changed files with 1 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue