lkml.org 
[lkml]   [2006]   [Jul]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] intelfbhw.c: intelfbhw_get_p1p2 defined but not used

intelfbhw_get_p1p2 is used only if REGDUMP is defined - compile it in only
if REGDUMP is defined - one less compiler warning.

Patch against 2.6.18-rc1.

Parag

--- linux-2.6.17/drivers/video/intelfb/intelfbhw.c.orig 2006-07-06 01:48:55.000000000 -0400
+++ linux-2.6.17/drivers/video/intelfb/intelfbhw.c 2006-07-06 01:49:45.000000000 -0400
@@ -614,6 +614,7 @@ static int calc_vclock(int index, int m1
return vco / p;
}

+#if REGDUMP
static void
intelfbhw_get_p1p2(struct intelfb_info *dinfo, int dpll, int *o_p1, int *o_p2)
{
@@ -639,7 +640,7 @@ intelfbhw_get_p1p2(struct intelfb_info *
*o_p1 = p1;
*o_p2 = p2;
}
-
+#endif

void
intelfbhw_print_hw_state(struct intelfb_info *dinfo, struct intelfb_hwstate *hw)
\
 
 \ /
  Last update: 2006-07-06 08:07    [W:0.108 / U:0.376 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site