gma500: Fix frequency detection
authorAlan Cox <alan@linux.intel.com>
Fri, 13 Jul 2012 14:27:29 +0000 (15:27 +0100)
committerDave Airlie <airlied@gmail.com>
Fri, 24 Aug 2012 07:02:42 +0000 (17:02 +1000)
If we have a 266MHz part we set core_freq to 0 in several spots

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@gmail.com>
drivers/gpu/drm/gma500/cdv_device.c
drivers/gpu/drm/gma500/psb_device.c

index 4882e642eec39b53429955c0e27d42219bfb449e..bfc2f397019a0444c11f5239740e3d4e11c6cd43 100644 (file)
@@ -457,6 +457,7 @@ static void cdv_get_core_freq(struct drm_device *dev)
        case 6:
        case 7:
                dev_priv->core_freq = 266;
+               break;
        default:
                dev_priv->core_freq = 0;
        }
index 5971bc82b765cd87e6b32a347719ee3a5a218a64..f1432f096e5873ce3f3b0d2b39f3ef8322a91af3 100644 (file)
@@ -290,6 +290,7 @@ static void psb_get_core_freq(struct drm_device *dev)
        case 6:
        case 7:
                dev_priv->core_freq = 266;
+               break;
        default:
                dev_priv->core_freq = 0;
        }