summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/northbridge/intel/i945/gma.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/src/northbridge/intel/i945/gma.c b/src/northbridge/intel/i945/gma.c
index 83dc42ef99..749d07b724 100644
--- a/src/northbridge/intel/i945/gma.c
+++ b/src/northbridge/intel/i945/gma.c
@@ -588,16 +588,15 @@ static u32 get_cdclk(struct device *const dev)
{
u16 gcfgc = pci_read_config16(dev, GCFGC);
- if (gcfgc & GC_LOW_FREQUENCY_ENABLE) {
+ if (gcfgc & GC_LOW_FREQUENCY_ENABLE)
return 133333333;
- } else {
- switch (gcfgc & GC_DISPLAY_CLOCK_MASK) {
- case GC_DISPLAY_CLOCK_333_320_MHZ:
- return 320000000;
- default:
- case GC_DISPLAY_CLOCK_190_200_MHZ:
- return 200000000;
- }
+
+ switch (gcfgc & GC_DISPLAY_CLOCK_MASK) {
+ case GC_DISPLAY_CLOCK_333_320_MHZ:
+ return 320000000;
+ default:
+ case GC_DISPLAY_CLOCK_190_200_MHZ:
+ return 200000000;
}
}