From patchwork Thu Jun 6 16:13:48 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10980001 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 2C8B476 for ; Thu, 6 Jun 2019 16:14:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1C90328A19 for ; Thu, 6 Jun 2019 16:14:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 10EB7285FD; Thu, 6 Jun 2019 16:14: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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAC5D28A5A for ; Thu, 6 Jun 2019 16:14:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729548AbfFFQOG (ORCPT ); Thu, 6 Jun 2019 12:14:06 -0400 Received: from mail-qt1-f194.google.com ([209.85.160.194]:34195 "EHLO mail-qt1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729274AbfFFQOG (ORCPT ); Thu, 6 Jun 2019 12:14:06 -0400 Received: by mail-qt1-f194.google.com with SMTP id m29so3356303qtu.1 for ; Thu, 06 Jun 2019 09:14:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=3pUyKz+cgfJSIYJH5CSG3LK8DCCSkGfDGktfMqsXauk=; b=tokbpkE8SkO2KvucEaK+J9Q3coW5TOoBG+YuT9aLXFinup+SHPjugYyRKE10Qczn+6 yIuex4e8+ZA9Ikq1bHnavZ+iCeJscxhh4sTIleOXvuv1d6a4hVqHvk8ZwAihJ/+od5tJ Ku7WsVY0ZxdVjhvHIKpnaDR3hdsGZBf/6axPpYRL44GZi2uHyJfewOFoDsVBFiR7INE+ jxiZwm0/aooddxSwdQuoX8Yy0tFcyBAJdOXJDqM72nB/eSYXOLy1U2DsHdKskZ/I/Bu6 0iKZUkUMnEQDWvvcmza9F5a2ordQFLti/QJfINAoB18nlsJJQuH8fdUKuAcSsYYQTNcT Vb+g== 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; bh=3pUyKz+cgfJSIYJH5CSG3LK8DCCSkGfDGktfMqsXauk=; b=oTiTvBb0MeOAQz/xvLUI37WatEwhzGV6t1Pggyo3tWp2GD/LN1/ePuSmj0oZ/Az0zd 9+6dTNKb2o82e2Vm9Vb8PH+bXZ2o+6YCZ7IOZjm7H86zZn79x3zvTb/IEfzYSEsFImgN 3dghMgmnzKesicQtk1hapEEsf3wKQW685bK0Hx56K00MgRBEwIe78+l8sIEnQYiSVwO1 xZJM93X5RPWXuXOctsw+lBX44o8dxDU2ippMi52absIgoX+2WdQd5XKySrWdLNwAlbN6 IKxjNTD1TyMV0HAP/c9iHF7om6K/VH9yjq397ZBN4iDSTS4LHZZTKF0UJDw/W8jXGJ4Z qoJg== X-Gm-Message-State: APjAAAVUM9tuf+hr6QhDtHNrYpLE2Jd4jZa9bICCBZ69gSB2ejk7vSfm 3Ynh5rn95EJn0RkMB7SBDNE= X-Google-Smtp-Source: APXvYqzsXUBcmxxB61eBhi9+hRSHs6HB64RrmJ8qa6CwhX8m37ofpc6FlZrVve/2IMSI/amX+rH90Q== X-Received: by 2002:a0c:ad53:: with SMTP id v19mr40280752qvc.40.1559837645613; Thu, 06 Jun 2019 09:14:05 -0700 (PDT) Received: from fabio-Latitude-E5450.am.freescale.net ([177.221.114.206]) by smtp.gmail.com with ESMTPSA id u26sm604337qtc.33.2019.06.06.09.14.02 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 09:14:04 -0700 (PDT) From: Fabio Estevam To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, horia.geanta@nxp.com, Fabio Estevam Subject: [PATCH 1/2] crypto: mxs-dcp - Use devm_platform_ioremap_resource() Date: Thu, 6 Jun 2019 13:13:48 -0300 Message-Id: <20190606161349.5227-1-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use devm_platform_ioremap_resource() to simplify the code a bit. Signed-off-by: Fabio Estevam --- drivers/crypto/mxs-dcp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/crypto/mxs-dcp.c b/drivers/crypto/mxs-dcp.c index bdc4c42d3ac8..f1fa637cb029 100644 --- a/drivers/crypto/mxs-dcp.c +++ b/drivers/crypto/mxs-dcp.c @@ -986,8 +986,6 @@ static int mxs_dcp_probe(struct platform_device *pdev) struct device *dev = &pdev->dev; struct dcp *sdcp = NULL; int i, ret; - - struct resource *iores; int dcp_vmi_irq, dcp_irq; if (global_sdcp) { @@ -995,7 +993,6 @@ static int mxs_dcp_probe(struct platform_device *pdev) return -ENODEV; } - iores = platform_get_resource(pdev, IORESOURCE_MEM, 0); dcp_vmi_irq = platform_get_irq(pdev, 0); if (dcp_vmi_irq < 0) { dev_err(dev, "Failed to get IRQ: (%d)!\n", dcp_vmi_irq); @@ -1013,7 +1010,7 @@ static int mxs_dcp_probe(struct platform_device *pdev) return -ENOMEM; sdcp->dev = dev; - sdcp->base = devm_ioremap_resource(dev, iores); + sdcp->base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(sdcp->base)) return PTR_ERR(sdcp->base); From patchwork Thu Jun 6 16:13:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 10980003 X-Patchwork-Delegate: herbert@gondor.apana.org.au 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 6F1896C5 for ; Thu, 6 Jun 2019 16:14:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5FDC928A4C for ; Thu, 6 Jun 2019 16:14:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5244A28A19; Thu, 6 Jun 2019 16:14:10 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id F299128A4C for ; Thu, 6 Jun 2019 16:14:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729563AbfFFQOJ (ORCPT ); Thu, 6 Jun 2019 12:14:09 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:33071 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729274AbfFFQOJ (ORCPT ); Thu, 6 Jun 2019 12:14:09 -0400 Received: by mail-qt1-f193.google.com with SMTP id 14so3359958qtf.0 for ; Thu, 06 Jun 2019 09:14:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KC6gNLUrrGz38loFr/g6746DdtqSbAUJ+54d4evf4OQ=; b=bSv5WuBs9s7Rd6sXtvzjt6choe5fjtl7obvAXWZPWetl29Oxx25wKkg8KY8TXMcshL PbqaO2fgTdadTbiCFBBmDnp5OIG796n7uF6izDlHuIprprGnICn3NR6g7xGSwVIIRLPL LSF8LB8AD0bL8PuQGiU3oudHY/l5p+p4ZyXlqKfeHBXaX/HTXZ3qyNHk15ztVWk7vEVK 5eD8ch7wHv/iV2IMND/waCfAOxmsk09DouQUtnE/K2r2UDVWIzyV1UfaOr+V/MOWUoJK 3QUOEZR9Y0wPnQMJ/wTcVJPvh95OSdINEXC+Da/Tx+0iLosoPNVMVUm+jymYhqGvzSPP kvKg== 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=KC6gNLUrrGz38loFr/g6746DdtqSbAUJ+54d4evf4OQ=; b=iifqXlHFwUj8A9l//PfCtvBMx3C4mXNVjuYVbR8s4g/kBlQXLWAhTSE3L39iS2OtTr EQDNI/3o7jLW7A3mIIBeH9ELLEcbjLbsGBUDaba2we48AHb8YnnUGAuxkgk2AW4fiKd8 j/jZfCHN9c+6ajYhQZJd3yTT+AQo7f/qqymAsDn/XlVJiqY+5grZu5ZIK9fMkEtFVm2W VySknEOQt50V3w+R2Eey2lvyCWWLFpDrsjmFU0k5i2C4DuaIWRs9cmarQBj9z2NM8B/h 1EcNUczH+LaWrrA9aHFJdC8btgrLx6UE16ibdrMEqeoOJXtPoAHuoD79bG7oySgVP9bP jzHQ== X-Gm-Message-State: APjAAAXS5VlvxAg0J1msH4oDI7kPROsZnNgi6KGM+yBt3BcwAWbcRE+m 49fUqhZobl9nxVp2FdjrQFc= X-Google-Smtp-Source: APXvYqymYsRTVplbcMSxla1xo/TK+qZ4Rlx25gyS+Z0Q60h5AH37MaRZNWjCNduQB+dUJ1/3qM1E0A== X-Received: by 2002:aed:378a:: with SMTP id j10mr42113030qtb.6.1559837648547; Thu, 06 Jun 2019 09:14:08 -0700 (PDT) Received: from fabio-Latitude-E5450.am.freescale.net ([177.221.114.206]) by smtp.gmail.com with ESMTPSA id u26sm604337qtc.33.2019.06.06.09.14.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 06 Jun 2019 09:14:07 -0700 (PDT) From: Fabio Estevam To: herbert@gondor.apana.org.au Cc: linux-crypto@vger.kernel.org, horia.geanta@nxp.com, Fabio Estevam Subject: [PATCH 2/2] crypto: sahara - Use devm_platform_ioremap_resource() Date: Thu, 6 Jun 2019 13:13:49 -0300 Message-Id: <20190606161349.5227-2-festevam@gmail.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190606161349.5227-1-festevam@gmail.com> References: <20190606161349.5227-1-festevam@gmail.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use devm_platform_ioremap_resource() to simplify the code a bit. Signed-off-by: Fabio Estevam --- drivers/crypto/sahara.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c index fd11162a915e..616fdc9f1816 100644 --- a/drivers/crypto/sahara.c +++ b/drivers/crypto/sahara.c @@ -1387,7 +1387,6 @@ MODULE_DEVICE_TABLE(of, sahara_dt_ids); static int sahara_probe(struct platform_device *pdev) { struct sahara_dev *dev; - struct resource *res; u32 version; int irq; int err; @@ -1401,8 +1400,7 @@ static int sahara_probe(struct platform_device *pdev) platform_set_drvdata(pdev, dev); /* Get the base address */ - res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - dev->regs_base = devm_ioremap_resource(&pdev->dev, res); + dev->regs_base = devm_platform_ioremap_resource(pdev, 0); if (IS_ERR(dev->regs_base)) return PTR_ERR(dev->regs_base);