From patchwork Fri Oct 31 22:54:10 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Steve Longerbeam X-Patchwork-Id: 5207301 Return-Path: X-Original-To: patchwork-dri-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4F067C11AC for ; Fri, 31 Oct 2014 23:56:51 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9438B20173 for ; Fri, 31 Oct 2014 23:56:50 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 346302014A for ; Fri, 31 Oct 2014 23:56:48 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 73DA96E85B; Fri, 31 Oct 2014 16:56:39 -0700 (PDT) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-pa0-f49.google.com (mail-pa0-f49.google.com [209.85.220.49]) by gabe.freedesktop.org (Postfix) with ESMTP id BFEE56E849 for ; Fri, 31 Oct 2014 15:57:10 -0700 (PDT) Received: by mail-pa0-f49.google.com with SMTP id lj1so8559516pab.36 for ; Fri, 31 Oct 2014 15:57:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Lv6FZsz9hR9tZAohp5smIjISaEGwrS8YrutaagQh1bE=; b=LmpadITkTFUoo2pFK7AhakbuMbnacl/Fnl1RVeoxgkmdvSAtFTWDjDtbtUa1zRdsEV DTOtqonqVqh+o9jLF6hmsdzaS7WRve3MirmbCLWBY1mQipkTu6wN6ZwgpSnPzLXu/f8c 8aMrnbmmiYZkF6tRr8Rr7hTVCytxJgi1G9yPekj4zED0JMjtm3XzA70Pb4CmTgcKFxyk FQ0S6tm1XrdGuRx6EfNvBvS8h/T1huHGHshui8PWmTWFakM1EcV1O3QClBvmRr70RS62 ogmrDyAE3oJou4Zu0J/Pauq/iEjONNOKgIGhPutypHFY3ha33EHZlvrRNP2/nWBaSBcu TvQQ== X-Received: by 10.70.93.38 with SMTP id cr6mr10440430pdb.135.1414796230650; Fri, 31 Oct 2014 15:57:10 -0700 (PDT) Received: from mothership.mgc.mentorg.com (c-50-152-159-227.hsd1.ca.comcast.net. [50.152.159.227]) by mx.google.com with ESMTPSA id ev8sm10870656pdb.28.2014.10.31.15.57.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 31 Oct 2014 15:57:10 -0700 (PDT) From: Steve Longerbeam X-Google-Original-From: Steve Longerbeam To: dri-devel@lists.freedesktop.org Subject: [PATCH 27/72] gpu: ipu-di: Move ipu pointer init Date: Fri, 31 Oct 2014 15:54:10 -0700 Message-Id: <1414796095-10107-28-git-send-email-steve_longerbeam@mentor.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1414796095-10107-1-git-send-email-steve_longerbeam@mentor.com> References: <1414796095-10107-1-git-send-email-steve_longerbeam@mentor.com> X-Mailman-Approved-At: Fri, 31 Oct 2014 16:56:31 -0700 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Move the init of di->ipu pointer to near top of ipu_di_init(). Signed-off-by: Steve Longerbeam --- drivers/gpu/ipu-v3/ipu-di.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/ipu-v3/ipu-di.c b/drivers/gpu/ipu-v3/ipu-di.c index 5686969..70bf594 100644 --- a/drivers/gpu/ipu-v3/ipu-di.c +++ b/drivers/gpu/ipu-v3/ipu-di.c @@ -765,6 +765,7 @@ int ipu_di_init(struct ipu_soc *ipu, struct device *dev, int id, if (IS_ERR(di->clk_di)) return PTR_ERR(di->clk_di); + di->ipu = ipu; di->module = module; di->id = id; di->clk_ipu = clk_ipu; @@ -777,7 +778,6 @@ int ipu_di_init(struct ipu_soc *ipu, struct device *dev, int id, dev_dbg(dev, "DI%d base: 0x%08lx remapped to %p\n", id, base, di->base); di->inuse = false; - di->ipu = ipu; return 0; }