From patchwork Wed Aug 9 15:48:13 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Coardos X-Patchwork-Id: 13348144 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 23BEAC04A6A for ; Wed, 9 Aug 2023 15:49:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=VqCHKA5K9zZtEyjkUHPqprPirPUZZDLw5GGIhIq0qc8=; b=xlVAUu3aTxIiuG 7rPpTnqFaR6loXyTCag04SJAOCzIribFki3ryltDG0FD2sLSHaeT9WnMjNhRWY/yanDwBxaE+4Rks +TGOFN3dxe2bpFYjL7UetgM03ivLjgFsH/BpNqOLqAQIkQx7nJnN66gtO+vHmxgHqlNNRyj6YOhgF tRmfZ90CpGeiYYbSk+qa+s4Rp1LO+IuRuEP5i8ejuVfQgl04+uBkNCZRI/Rv8CPf1epRQCn0/e+cW r0st0oIV7ifqJUbQPWZrD8Ly7oq1Rf00KNSJ6pNd8ckFnuAcxxh+qx4geNf+c3r1XkpUQGJ9a1E3y DTElukWFyKd40GlZCsIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qTlQO-005KkU-2p; Wed, 09 Aug 2023 15:48:40 +0000 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qTlQL-005KjD-1K for linux-arm-kernel@lists.infradead.org; Wed, 09 Aug 2023 15:48:39 +0000 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-3fe426b8583so61330245e9.2 for ; Wed, 09 Aug 2023 08:48:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691596113; x=1692200913; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=FNAUmWM3JtAR5Xew43AJylljCyPA085c+UJjgn20Ff0=; b=gJc1PuCJ9nZ3KJbXveQg/jHhaY4wMbzpez59erprqt6jsCW8e09eL94FmjSLwcjpg+ 5Ev+MWraTPfz5JUXbm2bx/R+m4F9Uh8EZnRm5+mGMkb9ynxBb/7DiKPoa1u5SXeY+vyR i4D0sB3KdRSDJ1774jN4bzh92GTpem+n3VEVBcmACOssC+I/WPXUFKbsjSHr0464nSJx KyJXlvArXI4ziCAA1djMX+ZT1G63uxvu1uIvP6UN8dABiP+mjDktH9KvD6BrDidutZKC kd2+E+Yk1lHg38QwW+30MpGhhT8unVJAIQMsR+jyH1CvYXlqateStkpDfnNqSa5xOuVS MUvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691596113; x=1692200913; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=FNAUmWM3JtAR5Xew43AJylljCyPA085c+UJjgn20Ff0=; b=IoUxp0HArB3KHPxZwIbfRyll/EtG9uZj1LOdDPKga8CCihPC8k438e+66fYlH2EiCn 6KP3zOP9fJHwrbYWSaFOi8W4jfU1WGV6G7Sx1kJUB+0OkWiCLBtGgdDyJxymmdjptkzI UlLwHhfr1KRbals6vsW8K1Er7gvZK1XAg0gCug/orKBSnSVct2vLxMcUeMj44fgL+zMc Np+xu3VIIVUGkA5eaEGxQ19KNAgfx9c6CDjJdPzjxELIxxEirImFx1Bwng4+rjGPxzQz 3YpI1TBrBxWoklyHw/kRCZxF4zUueDJbvyMy+RMRHHUl5dY+/pXw+dDexre9Hat3N4Xy gQLA== X-Gm-Message-State: AOJu0YzVmCnSZxo0EjYbRx+klgiysiTS9ImN2mnYyIujM73AVYNaS37P jxR5ws8AURz6IPCUQgyx/ak= X-Google-Smtp-Source: AGHT+IGkxOkZaTOhnw8brA33PBkFL5ObnWyNyyI7poJwX7Ye2KMDU+ApM9qS2/XT8Dwzw6RAah+HsA== X-Received: by 2002:a05:600c:2197:b0:3fe:63ca:ccf6 with SMTP id e23-20020a05600c219700b003fe63caccf6mr2435578wme.16.1691596112921; Wed, 09 Aug 2023 08:48:32 -0700 (PDT) Received: from localhost.localdomain ([92.85.190.61]) by smtp.gmail.com with ESMTPSA id y9-20020a1c4b09000000b003fe215e4492sm2312396wma.4.2023.08.09.08.48.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 08:48:32 -0700 (PDT) From: Andrei Coardos To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: florian.fainelli@broadcom.com, rui.zhang@intel.com, amitk@kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org, bcm-kernel-feedback-list@broadcom.com, mmayer@broadcom.com, alex@shruggie.ro, Andrei Coardos Subject: [PATCH] thermal: broadcom: brcstb_thermal: removed unneeded platform_set_drvdata() Date: Wed, 9 Aug 2023 18:48:13 +0300 Message-Id: <20230809154813.16033-1-aboutphysycs@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230809_084837_450798_FEDC1EB3 X-CRM114-Status: GOOD ( 13.12 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This function call was found to be unnecessary as there is no equivalent platform_get_drvdata() call to access the private data of the driver. Also, the private data is defined in this driver, so there is no risk of it being accessed outside of this driver file. Signed-off-by: Andrei Coardos Reviewed-by: Alexandru Ardelean Reviewed-by: Florian Fainelli --- drivers/thermal/broadcom/brcmstb_thermal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/thermal/broadcom/brcmstb_thermal.c b/drivers/thermal/broadcom/brcmstb_thermal.c index 72d1dbe60b8f..2997c589ac7d 100644 --- a/drivers/thermal/broadcom/brcmstb_thermal.c +++ b/drivers/thermal/broadcom/brcmstb_thermal.c @@ -334,7 +334,6 @@ static int brcmstb_thermal_probe(struct platform_device *pdev) return PTR_ERR(priv->tmon_base); priv->dev = &pdev->dev; - platform_set_drvdata(pdev, priv); of_ops = priv->temp_params->of_ops; thermal = devm_thermal_of_zone_register(&pdev->dev, 0, priv,