From patchwork Wed Sep 5 19:37:38 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 10589343 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id DAA4214E0 for ; Wed, 5 Sep 2018 19:38:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C87352AA0E for ; Wed, 5 Sep 2018 19:38:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BC5A42AA1D; Wed, 5 Sep 2018 19:38:08 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 2C5BC2AA0E for ; Wed, 5 Sep 2018 19:38:08 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 2C3926E394; Wed, 5 Sep 2018 19:38:07 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-oi0-f68.google.com (mail-oi0-f68.google.com [209.85.218.68]) by gabe.freedesktop.org (Postfix) with ESMTPS id 272006E394 for ; Wed, 5 Sep 2018 19:38:05 +0000 (UTC) Received: by mail-oi0-f68.google.com with SMTP id r69-v6so15956818oie.3 for ; Wed, 05 Sep 2018 12:38:05 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cs4PYL4EAbXhqa1/+qufL34SyOAY8TU08a3FgFNoxjw=; b=O9V96pX2KMx6hlr/frsNcOWIaNAsBLjcGJsU0ty4QWyr3VtyAJzDzinE0//m6a/KEh 1locipBvi50sSeR0MVC0uB5LOdqpwxnGCbQsWRJmrb7sScOIQfJ7H7QJTInmFdb5AJBK EYOypBLhTvrjYTOumfyCytsGttUK/wVFtkOOQxSc1w5ixsSliRe5LDsqzNqkGcT/8c98 +qbeejQnCvC5YdCC0Zh8y8CeBcTC53lXGC4R8Bi61ppQ4FloXT0qjWFltT3dNciV4PPj M309P+dxUeV0KmyDB8qeJRC5d9/gWqexPIxEVE8qVmegIgf0LohcwZ8piBN4egA8BOAm yTOA== X-Gm-Message-State: APzg51DWY0KeZqxdWcBPPHyxBLYl7vIy/pI8FHgztocI8Llz+W9tPD5A GKNcNleRL1BYQFwrLH/niw== X-Google-Smtp-Source: ANB0VdY5gE1cyv7RJu0K5E+9crs4Jzg5R50ysAb5v5WPEYsUpObhubDdQz6uC1bDUhkzwoq0fUe4ew== X-Received: by 2002:aca:b904:: with SMTP id j4-v6mr33255174oif.89.1536176284356; Wed, 05 Sep 2018 12:38:04 -0700 (PDT) Received: from xps15.herring.priv (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.googlemail.com with ESMTPSA id u21-v6sm2296053oie.22.2018.09.05.12.38.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Sep 2018 12:38:03 -0700 (PDT) From: Rob Herring To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 21/21] fbdev: fsl-diu: get cpu node with of_get_cpu_node Date: Wed, 5 Sep 2018 14:37:38 -0500 Message-Id: <20180905193738.19325-22-robh@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180905193738.19325-1-robh@kernel.org> References: <20180905193738.19325-1-robh@kernel.org> X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Timur Tabi , Bartlomiej Zolnierkiewicz MIME-Version: 1.0 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP "device_type" use is deprecated for FDT though it has continued to be used for nodes like cpu nodes. Use of_get_cpu_node() instead which works using node names by default. This will allow the eventually removal of cpu device_type properties. Cc: Timur Tabi Cc: Bartlomiej Zolnierkiewicz Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Rob Herring Acked-by: Timur Tabi --- Please ack and I will take via the DT tree. This is dependent on the first 2 patches. drivers/video/fbdev/fsl-diu-fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 diff --git a/drivers/video/fbdev/fsl-diu-fb.c b/drivers/video/fbdev/fsl-diu-fb.c index bc9eb8afc313..332a56b6811f 100644 --- a/drivers/video/fbdev/fsl-diu-fb.c +++ b/drivers/video/fbdev/fsl-diu-fb.c @@ -1925,7 +1925,7 @@ static int __init fsl_diu_init(void) pr_info("Freescale Display Interface Unit (DIU) framebuffer driver\n"); #ifdef CONFIG_NOT_COHERENT_CACHE - np = of_find_node_by_type(NULL, "cpu"); + np = of_get_cpu_node(0, NULL); if (!np) { pr_err("fsl-diu-fb: can't find 'cpu' device node\n"); return -ENODEV;