From: Alan Cox Date: Tue, 5 Jul 2011 14:40:03 +0000 (+0100) Subject: gma500: remove an un-needed check X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=89e5d557171c5ce12c6f149633538582fe10ebb0;p=linux-beck.git gma500: remove an un-needed check This is a Medfield only path Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/gma500/mdfld_device.c b/drivers/staging/gma500/mdfld_device.c index 3955448bac89..e66d04a71191 100644 --- a/drivers/staging/gma500/mdfld_device.c +++ b/drivers/staging/gma500/mdfld_device.c @@ -589,7 +589,7 @@ static int mdfld_restore_display_registers(struct drm_device *dev, int pipe) PSB_WVDC32(palette_val[i], palette_reg + (i<<2)); if (pipe == 1) return 0; - if (IS_MFLD(dev) && !mdfld_panel_dpi(dev)) + if (!mdfld_panel_dpi(dev)) mdfld_enable_te(dev, pipe); return 0; }