From patchwork Fri Apr 16 12:23:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 12207529 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.7 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0D412C433B4 for ; Fri, 16 Apr 2021 12:23:32 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E32BB611AC for ; Fri, 16 Apr 2021 12:23:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243428AbhDPMXo (ORCPT ); Fri, 16 Apr 2021 08:23:44 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:36178 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243397AbhDPMXm (ORCPT ); Fri, 16 Apr 2021 08:23:42 -0400 Received: from mail-ed1-f69.google.com ([209.85.208.69]) by youngberry.canonical.com with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lXNVF-0006nH-3G for linux-samsung-soc@vger.kernel.org; Fri, 16 Apr 2021 12:23:17 +0000 Received: by mail-ed1-f69.google.com with SMTP id d27-20020a50f69b0000b02903827b61b783so6958615edn.8 for ; Fri, 16 Apr 2021 05:23:17 -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:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fzqFDF62IKS/7ZqV+8AeRm9rshpYPcGYLb2VCKEzlxc=; b=R0iak6duVVKYtOxtMgR/HbJ0JK1JPIiMO2kTuyqhLv8IR1uasn01xmdes+CklRp5kO lIZ66/uGRi3it69+lWfQOKTgNZzbzBd+lsy8rUPlNb93jckaa/sstnA42Ul2XRg5l4Ug 4k5GaNx+iuKvoxfgf5A48g6hE+0fEg33OXOUAmesX6XO+ennrr5S9k42jAN5yzUYwbe2 9GBDXRlYX5x5M2adEugvGRY7lD0gjA8xkXVsnXztRROXaMHWxombt5R4PBOz0VIOlaij Urlc0Z3xRtXw9tdY+OlyH9BwtdqtWGTZWtbs50xrFhPzeAQVffWKIU1AglxD9RDLiWzk dxdA== X-Gm-Message-State: AOAM531MYkn9dl3jhV2YdnQ9/+l/gUc2GvF4UCwnZ+7YU4wJFnN/0vpt 4/HKCrJqfBQnYZwja/yh/0mZZLipc/5VL4zSjyOIqWyF5+ToNjPonM4AHeedMbhSCm/KKpWsPYk 79xPwKgNRfzBE/tW3hNB0uq9HpLCJ5DGHQsqVcL56r3qgIfAl X-Received: by 2002:a17:906:a052:: with SMTP id bg18mr8164928ejb.18.1618575796875; Fri, 16 Apr 2021 05:23:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8rqxe4OShPzOPdaQiMJqPwX4MP+1hJHO+t8/0TCP0lXdUaa3BKe1KRRwEsifKkCWnlacHmg== X-Received: by 2002:a17:906:a052:: with SMTP id bg18mr8164918ejb.18.1618575796702; Fri, 16 Apr 2021 05:23:16 -0700 (PDT) Received: from localhost.localdomain (xdsl-188-155-192-147.adslplus.ch. [188.155.192.147]) by smtp.gmail.com with ESMTPSA id i25sm2328924edr.68.2021.04.16.05.23.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 Apr 2021 05:23:16 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Vladimir Zapolskiy , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 3/3] crypto: s5p-sss - consistently use local 'dev' variable in probe() Date: Fri, 16 Apr 2021 14:23:11 +0200 Message-Id: <20210416122311.223076-3-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210416122311.223076-1-krzysztof.kozlowski@canonical.com> References: <20210416122311.223076-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org For code readability, the probe() function uses 'dev' variable instead of '&pdev->dev', so update remaining places. Signed-off-by: Krzysztof Kozlowski --- drivers/crypto/s5p-sss.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/crypto/s5p-sss.c b/drivers/crypto/s5p-sss.c index 8c310816deab..55aa3a71169b 100644 --- a/drivers/crypto/s5p-sss.c +++ b/drivers/crypto/s5p-sss.c @@ -2186,14 +2186,14 @@ static int s5p_aes_probe(struct platform_device *pdev) } pdata->res = res; - pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res); + pdata->ioaddr = devm_ioremap_resource(dev, res); if (IS_ERR(pdata->ioaddr)) { if (!pdata->use_hash) return PTR_ERR(pdata->ioaddr); /* try AES without HASH */ res->end -= 0x300; pdata->use_hash = false; - pdata->ioaddr = devm_ioremap_resource(&pdev->dev, res); + pdata->ioaddr = devm_ioremap_resource(dev, res); if (IS_ERR(pdata->ioaddr)) return PTR_ERR(pdata->ioaddr); }