From patchwork Wed Jul 11 14:28:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Vetter X-Patchwork-Id: 1183661 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by patchwork1.kernel.org (Postfix) with ESMTP id A65003FC8E for ; Wed, 11 Jul 2012 15:53:34 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6FD7EA0E88 for ; Wed, 11 Jul 2012 08:53:34 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-we0-f177.google.com (mail-we0-f177.google.com [74.125.82.177]) by gabe.freedesktop.org (Postfix) with ESMTP id 61BDC9EED2 for ; Wed, 11 Jul 2012 08:35:40 -0700 (PDT) Received: by mail-we0-f177.google.com with SMTP id r3so960506wey.36 for ; Wed, 11 Jul 2012 08:35:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ffwll.ch; s=google; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=LhwxbqAJe5ByNtmLsj/cCH9Q34dxPUSAX6BmQJonvz8=; b=k8F5DjaipSRibCT3yhuPrevPo/Yw9kR8qLMSB7O7v9wBrlmLbyFifflJ30aNX9L3pl 43gmKJzlL8BnA+QiJXF2wHb49k5J+OIptKs/SG8eMiA+C7U9GRiWjncn3FIVWGvinZAQ O6JYG4rBrJ1R50iGcy0V2YFJ5+dfhtbB8JBjg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=LhwxbqAJe5ByNtmLsj/cCH9Q34dxPUSAX6BmQJonvz8=; b=j7UlteCsCWUTdZkskr5/uvsEgeSk9Avm9BvX5mKTfle5sfBttzBRzln51vj5VExjmH O4wCmCfwzjAuM0LYN/lUgFsk8puJmf2dngDJr1ZfTaym7tOokuYsHIAFppM+1kGmpy4c HlKUCfwiF6j7pw2uUniofJS99Dc4ZJAZreo5DEXvCV1eBo8l7KWoiAJr5v44qgTcNCcp 30k9u6pGj4nWFV06I0mNwPN3eKvBeqOfPGRlWht4WVjIQZ3foVChSESy6P1Ln6c5X9uw Gdn0Jd/JElhwFh3SccYTzvROygPW0AmmV8kjU8wPTCIXtREAYsndTt3XC2OXSamQsMMU crtQ== Received: by 10.180.105.130 with SMTP id gm2mr48144000wib.6.1342020939854; Wed, 11 Jul 2012 08:35:39 -0700 (PDT) Received: from wespe.ffwll.local (178-83-130-250.dynamic.hispeed.ch. [178.83.130.250]) by mx.google.com with ESMTPS id bc2sm5777080wib.0.2012.07.11.08.35.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 11 Jul 2012 08:35:39 -0700 (PDT) From: Daniel Vetter To: Intel Graphics Development Date: Wed, 11 Jul 2012 16:28:07 +0200 Message-Id: <1342016944-23395-25-git-send-email-daniel.vetter@ffwll.ch> X-Mailer: git-send-email 1.7.7.6 In-Reply-To: <1342016944-23395-1-git-send-email-daniel.vetter@ffwll.ch> References: <1342016944-23395-1-git-send-email-daniel.vetter@ffwll.ch> X-Gm-Message-State: ALoCoQn3FtalI5vc9eCjeN+FcgM7TyjdmYgTxcy51EI1GTEL7TT1jjMsZIQbrMhI68oRQcqeNHsG Cc: Daniel Vetter , dri-devel@lists.freedesktop.org Subject: [Intel-gfx] [PATCH 24/81] drm/fb helper: don't call drm_crtc_helper_set_config X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 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 Go through the interface vtable instead, because not everyone might be using the crtc helper code. Cc: dri-devel@lists.freedesktop.org Signed-Off-by: Daniel Vetter --- drivers/gpu/drm/drm_fb_helper.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 5683b7f..bf97c0a 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -228,7 +228,7 @@ bool drm_fb_helper_restore_fbdev_mode(struct drm_fb_helper *fb_helper) int i, ret; for (i = 0; i < fb_helper->crtc_count; i++) { struct drm_mode_set *mode_set = &fb_helper->crtc_info[i].mode_set; - ret = drm_crtc_helper_set_config(mode_set); + ret = mode_set->crtc->funcs->set_config(mode_set); if (ret) error = true; }