From patchwork Sun Jun 6 14:40:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Wilson X-Patchwork-Id: 104559 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o56Eg7qQ006821 for ; Sun, 6 Jun 2010 14:42:42 GMT Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id B23E49E961 for ; Sun, 6 Jun 2010 07:42:07 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by gabe.freedesktop.org (Postfix) with ESMTP id 9B7529E8F3 for ; Sun, 6 Jun 2010 07:40:43 -0700 (PDT) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 06 Jun 2010 07:36:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.53,372,1272870000"; d="scan'208";a="573795864" Received: from unknown (HELO broadwater.ger.corp.intel.com) ([10.255.16.205]) by fmsmga002.fm.intel.com with ESMTP; 06 Jun 2010 07:39:21 -0700 From: Chris Wilson To: intel-gfx@lists.freedesktop.org Date: Sun, 6 Jun 2010 15:40:24 +0100 Message-Id: <1275835224-10872-7-git-send-email-chris@chris-wilson.co.uk> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1275835224-10872-1-git-send-email-chris@chris-wilson.co.uk> References: <1275835224-10872-1-git-send-email-chris@chris-wilson.co.uk> Subject: [Intel-gfx] [PATCH 7/7] drm/i915: Return boolean status not error code from intel_crtc_mode_fixup() X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sun, 06 Jun 2010 14:42:42 +0000 (UTC) diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index e620825..8fed027 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c @@ -2354,7 +2354,7 @@ static bool intel_crtc_mode_fixup(struct drm_crtc *crtc, if (HAS_PCH_SPLIT(dev)) { /* FDI link clock is fixed at 2.7G */ if (mode->clock * 3 > 27000 * 4) - return MODE_CLOCK_HIGH; + return false; } drm_mode_set_crtcinfo(adjusted_mode, 0);