From patchwork Thu May 20 00:25:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 443374 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=-19.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, 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 6F5D8C433B4 for ; Thu, 20 May 2021 00:25:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4C43061184 for ; Thu, 20 May 2021 00:25:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230137AbhETA0n (ORCPT ); Wed, 19 May 2021 20:26:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35980 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229955AbhETA0m (ORCPT ); Wed, 19 May 2021 20:26:42 -0400 Received: from mail-pl1-x634.google.com (mail-pl1-x634.google.com [IPv6:2607:f8b0:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CC02C061761 for ; Wed, 19 May 2021 17:25:22 -0700 (PDT) Received: by mail-pl1-x634.google.com with SMTP id i6so3171876plt.4 for ; Wed, 19 May 2021 17:25:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=aRquPtKESR1fixPzXGluszKZZ1e3a9BRsbbdMoeuLvY=; b=Ds0tK1t4lVQ8KE/sGvf2nUVymAK21Pt8pKPu3fln6VW9CNikaOaUrGjV4DPHFPbQ+s CrE9qPxuFx80GzKOsWy/tx7t0AC57nz/Ictcrbg4xp864prwxIt69Hb9v/dSkuTPZD61 7pIUUGfmzYO93Wp+YVhARCpxNoVBGUjPBTDng= 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:mime-version:content-transfer-encoding; bh=aRquPtKESR1fixPzXGluszKZZ1e3a9BRsbbdMoeuLvY=; b=aUy6jUGCtHUmPtc3UWgLQC3O1J9qEaumXc8jKqaayzBLpq7OOMAOZwferEbAiicUSn R+o8xuNXu08XB9eLHq/pF5HgwdUmzaVa9tQ4OJr2NmoA52EVvUBfKEzjLtFBKG1coNdt SJoP2zv/KoqQY+yF0I9qyRk9xv6ejcE4SuyqaY4gQ6mxwFU6GW7L5xRyb4g5rfQZ5/UD Ve+3T9aJq2SN1TkJntNyMOI+CcTKWNbV+/A5Yhla0p6E3Dm14thv10ARMzpSugX42QyX Ijqb6DEepABRdaduM0iCbsXGsTA3GA9KU/lOAoYjWd4XhkYs64VGhkQ267Q/tFLi2V3/ 5Lxw== X-Gm-Message-State: AOAM530CqoMGRkubyWYFRZgjthGL5qa+uyZURjHMJ+0ntA3wteOlnUzf o/pBpR9HWjg4udP/F64uXnZCtg== X-Google-Smtp-Source: ABdhPJzQ4U2lTNUnLgnTbBfp6T56SKS85QwT+rKLMXH6K8ql9c3cbNItvfoNOn06y8J7swXPzEuKMg== X-Received: by 2002:a17:90a:7e03:: with SMTP id i3mr155918pjl.197.1621470322127; Wed, 19 May 2021 17:25:22 -0700 (PDT) Received: from smtp.gmail.com ([2620:15c:202:201:200b:db75:4e6c:8b96]) by smtp.gmail.com with ESMTPSA id i14sm398904pfk.130.2021.05.19.17.25.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 19 May 2021 17:25:21 -0700 (PDT) From: Stephen Boyd To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org, Daniel Vetter , "Rafael J. Wysocki" , Rob Clark , Russell King , Saravana Kannan Subject: [PATCH 1/7] component: Drop 'dev' argument to component_match_realloc() Date: Wed, 19 May 2021 17:25:13 -0700 Message-Id: <20210520002519.3538432-2-swboyd@chromium.org> X-Mailer: git-send-email 2.31.1.751.gd2f1c929bd-goog In-Reply-To: <20210520002519.3538432-1-swboyd@chromium.org> References: <20210520002519.3538432-1-swboyd@chromium.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org This argument isn't used. Drop it. Cc: Daniel Vetter Cc: "Rafael J. Wysocki" Cc: Rob Clark Cc: Russell King Cc: Saravana Kannan Signed-off-by: Stephen Boyd --- drivers/base/component.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/base/component.c b/drivers/base/component.c index 272ba42392f0..bbe1757dfa89 100644 --- a/drivers/base/component.c +++ b/drivers/base/component.c @@ -307,8 +307,7 @@ static void devm_component_match_release(struct device *dev, void *res) component_match_release(dev, res); } -static int component_match_realloc(struct device *dev, - struct component_match *match, size_t num) +static int component_match_realloc(struct component_match *match, size_t num) { struct component_match_array *new; @@ -359,7 +358,7 @@ static void __component_match_add(struct device *master, size_t new_size = match->alloc + 16; int ret; - ret = component_match_realloc(master, match, new_size); + ret = component_match_realloc(match, new_size); if (ret) { *matchptr = ERR_PTR(ret); return; @@ -469,7 +468,7 @@ int component_master_add_with_match(struct device *dev, int ret; /* Reallocate the match array for its true size */ - ret = component_match_realloc(dev, match, match->num); + ret = component_match_realloc(match, match->num); if (ret) return ret;