Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5327411ybv; Tue, 11 Feb 2020 13:35:23 -0800 (PST) X-Google-Smtp-Source: APXvYqwMFj/e5K0DuVHDNGQClYlzbkC08WfMl/WMy4oYYdtxuunBDOyhK5AOrz6w7TA7dCXUE25C X-Received: by 2002:a05:6808:643:: with SMTP id z3mr4226000oih.19.1581456922920; Tue, 11 Feb 2020 13:35:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581456922; cv=none; d=google.com; s=arc-20160816; b=qzvLz7gmiijKxmoFecUYI9M+8x71wPNd8xSPVfSbwMKrT7cvuyP08ogHsk22NRcpzf GWL/PmL9RyfauyrTOFUoWanUgaAg3LCkxroiA2Nnph1AGj5g8VGPG5f6Aiy8w8uw4fGv aNPx/xf6VUT8pR+sb9MLRaa1fL/dQe4M/sHzR9BPPjEcVjgRc4fAT4j2TVtEEYN53N+H QF/uE6RrXNYloaxirPuLT4aa4n0AF28oCf1btsq1HsKtbrfbuxKcuG/18ivEj8G36Q97 sGv7qjbr+/H+aHrnkDr5tJHbQrTCNnJm2YrT9/cjH/L0Sqxj4B5w9HU0Pve3YbWC2VEu 2YTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=TWnQvLYSjILv9VoiD6lTelywek+ZObEaZdlO8E0ICvI=; b=xPo0bprdafey9wpYRHPT7khNh8b1beE/17eSNWX3o0ClReSQNiScTm9u5uDog/oikF zvzNFet3mJEz+Q4XK3MRRs0q8kiEWiDMWS8mk8Kxi7yR2AuapcrLhUZP5VYRDiBnrxXm 9UscfGIY750miuxcpMGvNd+og/vMqtvKb5V3tZJD3C/XVaG5/ZP+JlwAd86Srr4MsGvA DRD+5o7lvpTtcXjmlECBzw9/6OVzuJCn76tjX7+xnPB9OCpxhbgfRDbGaP5BClRe4/XD VREeMYKr0bk0SrI2YKB3YqeaROc4ICcRDTTcCo7ADhQbfej4EWZgb8xA2jjX20nwzVXu sd+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s128si2194546oig.204.2020.02.11.13.35.11; Tue, 11 Feb 2020 13:35:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731280AbgBKS0y (ORCPT + 99 others); Tue, 11 Feb 2020 13:26:54 -0500 Received: from leibniz.telenet-ops.be ([195.130.137.77]:35442 "EHLO leibniz.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731261AbgBKS0x (ORCPT ); Tue, 11 Feb 2020 13:26:53 -0500 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by leibniz.telenet-ops.be (Postfix) with ESMTPS id 48H9z66gVqzMtgrC for ; Tue, 11 Feb 2020 19:19:30 +0100 (CET) Received: from ramsan ([84.195.182.253]) by albert.telenet-ops.be with bizsmtp id 1WKV2200F5USYZQ06WKWPB; Tue, 11 Feb 2020 19:19:30 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1j1a8A-0002pI-G8; Tue, 11 Feb 2020 19:19:30 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1j1a8A-0003zZ-El; Tue, 11 Feb 2020 19:19:30 +0100 From: Geert Uytterhoeven To: Gilad Ben-Yossef , Herbert Xu , "David S . Miller" Cc: Greg Kroah-Hartman , "Rafael J . Wysocki" , linux-crypto@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH v2 31/34] crypto: ccree - use existing dev helper in init_cc_resources() Date: Tue, 11 Feb 2020 19:19:25 +0100 Message-Id: <20200211181928.15178-32-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200211181928.15178-1-geert+renesas@glider.be> References: <20200211181928.15178-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the existing dev helper variable instead of plat_dev->dev. Signed-off-by: Geert Uytterhoeven --- v2: - New. drivers/crypto/ccree/cc_driver.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c index bd9db53c68ab4381..2d50991b9a17756b 100644 --- a/drivers/crypto/ccree/cc_driver.c +++ b/drivers/crypto/ccree/cc_driver.c @@ -331,13 +331,13 @@ static int init_cc_resources(struct platform_device *plat_dev) init_completion(&new_drvdata->hw_queue_avail); - if (!plat_dev->dev.dma_mask) - plat_dev->dev.dma_mask = &plat_dev->dev.coherent_dma_mask; + if (!dev->dma_mask) + dev->dma_mask = &dev->coherent_dma_mask; dma_mask = DMA_BIT_MASK(DMA_BIT_MASK_LEN); while (dma_mask > 0x7fffffffUL) { - if (dma_supported(&plat_dev->dev, dma_mask)) { - rc = dma_set_coherent_mask(&plat_dev->dev, dma_mask); + if (dma_supported(dev, dma_mask)) { + rc = dma_set_coherent_mask(dev, dma_mask); if (!rc) break; } -- 2.17.1