Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1212347rdg; Fri, 11 Aug 2023 13:37:27 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHAibe8ChgfK7Gh9WT6SsfIqSX+kyNdYV0xDqzpWDj/054bc8aQVmLESMIr+TKwTACy3rbI X-Received: by 2002:a17:902:74c2:b0:1b8:17e8:5475 with SMTP id f2-20020a17090274c200b001b817e85475mr2972517plt.24.1691786247469; Fri, 11 Aug 2023 13:37:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691786247; cv=none; d=google.com; s=arc-20160816; b=fZ7zZ+i+B3Sh7Qb/3ZYG9SbinCqgr8RGI//c6fAGHwwaB7K81eKGvF/KJ7F3j/KDXm 8lqKlYaYSI1bTnM/KUqH3UNukRh5Krc4A4Bm3WdMcfsil/K9Snv71W3Eox4Nw7aXdr62 CnQJMhK2O+UN9NQR3goaF2l9WKJ9lB5Noa+rPsMlLnmWFoIhmU3/8F8trbEdl5lba/nF LcZovC1DP7skls1eLM+eeGFV7/3piM6FFfgHAWEM5FzZmc1DN91vHG/FyPTEqVGHBnFU Cbq5wJa56Q4Jt0mfiSNrmlZjy+T5ogL1069mrQSWCM3xktMqwhYm2wQnqzNVKWPHPLhg g/lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=K8XAdlCauzuqTqX7DL7uCr2jVWlrna5hii1a8kj15JE=; fh=v3jirWEs3ggimPPc+EetmWQfNBcdT5ZXnhneH5dEovg=; b=MpNVOaPxKwzK6zamO39MBr2CT7JKlWPT3eNFJE0rNlAYrenj66OK1RHrXzwnJDC+zQ N+Ijzc3zAbj+2MQgFERX3sqXO7UnHo3jyggXCKBo7tk7j9+9trPDg4IsPYCV44OnKqsn UwHWHq0fxZpIvFF4UrN/vluKIfiTOlhQY2dfmnfmX9hE7EJY5fJ0Ar/slJxKQhspnesq bIkdpFdoK8qxO/jGtn8qyjwbyBLXJ85LoIPSBzk/8hxtp4zpbTgUJYjvKNCxQLt68U34 JRhYMqAEPrbtTNkNj2cdjYFqVWkd4Z5V9Wv2LRQRV/feqkmC4mPzZo/FmdP/G68V8+ae MybQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=i6oD9bgh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u6-20020a170902e80600b001b84c7d4716si4033214plg.32.2023.08.11.13.37.15; Fri, 11 Aug 2023 13:37:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=i6oD9bgh; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236161AbjHKTkp (ORCPT + 99 others); Fri, 11 Aug 2023 15:40:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235584AbjHKTko (ORCPT ); Fri, 11 Aug 2023 15:40:44 -0400 Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3D5B30E6; Fri, 11 Aug 2023 12:40:43 -0700 (PDT) Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-76cd8dab98fso172346885a.3; Fri, 11 Aug 2023 12:40:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691782842; x=1692387642; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=K8XAdlCauzuqTqX7DL7uCr2jVWlrna5hii1a8kj15JE=; b=i6oD9bghJDTu1zIQIV4UtUAx1+dPDP6CDrtzU9vghK3CiuknavQ6GqZJhbsOQVSMI2 OV8W/NB2Z2SY+Jkf8lUEOxUjQIqmbxHu6jquYhiyp/0M2+yG8f/qDgaq2CbO2dLVp1dq +7/kqN0uTWYkwyjAuNnr6AuOtZG/vR6lP0L427ToteS19YuwsytmuMdebanfvGRNNOx5 3p6DSoODvzu+GeZZd+si7+4RKOumeXVfqkLQLG8yaIArCBk+UWiLylcKWRB56HRCX/vX 82k9L25AmzIFT5jInmSyANwga3Ke6p4QgJraLbfmT7IY/+7D/ca0rZ788xZWoQBtKi2z bVyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691782842; x=1692387642; 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=K8XAdlCauzuqTqX7DL7uCr2jVWlrna5hii1a8kj15JE=; b=Wrvpk0Y/j23ESVsqJn6MHvNY3GDYEebQTAl2LHSGbThaxtVDMn1nOFlPX5w1EktesT Vwo0akzYrblHAkPb86MpPpq08/JQuOOIR6Dsk5hisH98otgxt6IwL8TPKndWNktLqVgs Jg6JInolMI/+bZ8ByqxtAkGhdfgdfARlCMxXp1E0PzermtKdJFjDEH3BKFiH/2DS1cyZ FVxpJ0xVbgSkBv/+dhW6mJECn8pnAGLNRMHx3QKn19a+1WZoHbgYudzww5a2G3M/tAR+ eZIZUgydD7ShWj6sy/H88exH/6vW+2SuCvEICC1XJJ2RymDNwfelYm/TjHwGn6DAXMxe 6tZg== X-Gm-Message-State: AOJu0Yzu9vMp00iJbvY+ZVG/xrPsu1n+VSVse+/BjYSRj2utnswQVPbg pSq/DIB/iI2+njvgHZTnmqbOuiZLPRx0rg== X-Received: by 2002:a05:620a:24c:b0:767:4016:29f3 with SMTP id q12-20020a05620a024c00b00767401629f3mr2941226qkn.58.1691782842614; Fri, 11 Aug 2023 12:40:42 -0700 (PDT) Received: from localhost.localdomain ([92.85.190.61]) by smtp.gmail.com with ESMTPSA id j1-20020ac84f81000000b003ef2db16e72sm1375329qtw.94.2023.08.11.12.40.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 12:40:42 -0700 (PDT) From: Andrei Coardos To: linux-kernel@vger.kernel.org, linux-sunxi@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-pm@vger.kernel.org Cc: samuel@sholland.org, jernej.skrabec@gmail.com, wens@csie.org, rui.zhang@intel.com, amitk@kernel.org, daniel.lezcano@linaro.org, rafael@kernel.org, tiny.windzz@gmail.com, anarsoul@gmail.com, alex@shruggie.ro, Andrei Coardos Subject: [PATCH] thermal: sun8i_thermal: remove unneeded call to platform_set_drvdata() Date: Fri, 11 Aug 2023 22:40:32 +0300 Message-Id: <20230811194032.4240-1-aboutphysycs@gmail.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.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 --- drivers/thermal/sun8i_thermal.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/thermal/sun8i_thermal.c b/drivers/thermal/sun8i_thermal.c index 195f3c5d0b38..61a2f287ac90 100644 --- a/drivers/thermal/sun8i_thermal.c +++ b/drivers/thermal/sun8i_thermal.c @@ -489,8 +489,6 @@ static int sun8i_ths_probe(struct platform_device *pdev) if (!tmdev->chip) return -EINVAL; - platform_set_drvdata(pdev, tmdev); - ret = sun8i_ths_resource_init(tmdev); if (ret) return ret; -- 2.34.1