Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp651855pxu; Fri, 23 Oct 2020 09:52:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRD+o7vrxV7iAJsQY4pg7gphUWEQBrXO7g0ab6sbv9SEdDOuhgRR5nHLKt2ow6E7rpNSYa X-Received: by 2002:aa7:d813:: with SMTP id v19mr3183857edq.333.1603471947575; Fri, 23 Oct 2020 09:52:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603471947; cv=none; d=google.com; s=arc-20160816; b=eCF5yYWRDmcxzrgxt0TZfs0jxFlT/X3fMNdYXzzl1YZUTh1sJMmgxDVo5D8K3gkCgX 7Ch96EBA0MIzmJb8agkW15FlN2nhHdkaPU4CkNx35I0ttsGuLujAWobWXzlAri7Nv8qW x6Qchsnau+xFuHXnE1dln1XtDeoA1Wp8FFf5ESQDORIJZV64QTXEZKE5/WG535eb5tUe w0tZLCFX3d1jG1Fv5kg5Na3lJ3syCKKncubJaObfLyQXHdkdacwXXcaOG6wBCnwh03cJ bSqlg8Fj9c7tsMgtoiSJUz8+yzM+welcu/f4AtSnds+DbF2b6F5me0HieTahl9f2id0R ervw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=vd/rQ8Z51OitxruTppvHsOzxNO2Z78PVRSBR/5M5zMk=; b=R15v8t5bSMJRqDyANjVzT1HhGj+iGqZCc5K+J1JNJKjLEKPMMDp/bXETK7QNN5dUhu STOStd3XOaKoms0exl0nd8sxNdfx65rNd0bp+rjCBIcTPNuoZxErQPXarOeB7ow/71sC g1U+TePTONBfiEwgoWU1mknHb3alxGMULtVtQGru4Uqafsi+bkio2irJHNRRxJO3a3Ja HGl6xMi7HLeMgfCUWaYUls2iam7SCdObKIfl9WMneQDENH2T6+zL4z7UEvu+EL36XpSY u249UtLLESy+neGRzEnRY3FNfRNDvt3LfgwvUj2T0sl9aVh6P1Dcli8gvKkMj/G7FoDJ S3/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=c1tHVgdT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p5si1271214ejy.384.2020.10.23.09.52.05; Fri, 23 Oct 2020 09:52:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=c1tHVgdT; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S461665AbgJWJp6 (ORCPT + 99 others); Fri, 23 Oct 2020 05:45:58 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:47562 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S461555AbgJWJp5 (ORCPT ); Fri, 23 Oct 2020 05:45:57 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 09N9jXjC079273; Fri, 23 Oct 2020 04:45:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1603446333; bh=vd/rQ8Z51OitxruTppvHsOzxNO2Z78PVRSBR/5M5zMk=; h=From:To:CC:Subject:Date; b=c1tHVgdTnRhcXT9gX9bvJRksoPbgIC5b1dTUMDWlbmmg/qfB//8HmH6b8NwPPrRpH +x5fA3AEkbGkdmx8dvKTmHPpcFNzmHxeyIsTRxm1yWru6kvwDMGrsgATH+SnWyU/Jp uMZ9pTiBJMoFAJ6xs7dQbZSc2WStqShwA6q4awN8= Received: from DLEE107.ent.ti.com (dlee107.ent.ti.com [157.170.170.37]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 09N9jXcw091988 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 23 Oct 2020 04:45:33 -0500 Received: from DLEE104.ent.ti.com (157.170.170.34) by DLEE107.ent.ti.com (157.170.170.37) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Fri, 23 Oct 2020 04:45:32 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Fri, 23 Oct 2020 04:45:32 -0500 Received: from feketebors.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 09N9jUfl007401; Fri, 23 Oct 2020 04:45:30 -0500 From: Peter Ujfalusi To: , , , CC: , , Subject: [PATCH] drm: xlnx: Use dma_request_chan for DMA channel request Date: Fri, 23 Oct 2020 12:46:02 +0300 Message-ID: <20201023094602.5630-1-peter.ujfalusi@ti.com> X-Mailer: git-send-email 2.29.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no need to use the of_dma_request_slave_channel() directly as dma_request_chan() is going to try to get the channel via OF as well. Signed-off-by: Peter Ujfalusi --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index 98bd48f13fd1..a4405d081aca 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c +++ b/drivers/gpu/drm/xlnx/zynqmp_disp.c @@ -28,7 +28,6 @@ #include #include #include -#include #include #include #include @@ -1316,8 +1315,7 @@ static int zynqmp_disp_layer_request_dma(struct zynqmp_disp *disp, snprintf(dma_channel_name, sizeof(dma_channel_name), "%s%u", dma_names[layer->id], i); - dma->chan = of_dma_request_slave_channel(disp->dev->of_node, - dma_channel_name); + dma->chan = dma_request_chan(disp->dev, dma_channel_name); if (IS_ERR(dma->chan)) { dev_err(disp->dev, "failed to request dma channel\n"); ret = PTR_ERR(dma->chan); -- Peter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki