[PATCH] intelfbhw.c: intelfbhw_get_p1p2 defined but not used

From: Parag Warudkar
Date: Thu Jul 06 2006 - 02:02:18 EST



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)