From patchwork Fri Aug 11 19:40:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Coardos X-Patchwork-Id: 13351349 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 AB497C001B0 for ; Fri, 11 Aug 2023 19:41:19 +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=GV6TgOLc7jDlyqFGCGyGchi+aC26ELNd1b1SjSM2yaw=; b=i0tZJw5tzjV+C5 NMK7RDOlsLdKeBhxLC0KnoJJazpVDWg6xLNbFTuqkqpP8l0bVc8OOVHwIU/dVjJBqnydbm+SbbSzb SLKOzvonCZJCgY87n9gtxOngFGbMBHZm1PUaMwA9tRHX+MheiW6729C8GZgUJY45NU1OlUVbCYgUc 1QbfvAVjiKpnmUj6spvp/DBb578GXVuBCr7DrxYVWbhaEul4b0p52DNuIBJO70DLDtveh+2nrqVRI Xxcibwbj/xC9EhY0kJXjCeH7KkWf/JZ9G9N9iYyIcGmisq4JwBq9gNYeYb6N/w3ST9XN+MH5DzHuT DyQ+oURm/47ozXhHXbvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qUY0C-00BTtS-0J; Fri, 11 Aug 2023 19:40:52 +0000 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qUY08-00BTre-2f for linux-arm-kernel@lists.infradead.org; Fri, 11 Aug 2023 19:40:50 +0000 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-7656652da3cso172611685a.1 for ; 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=F6asT6tQH8ZHI42AzYABG3FmrdM1vuERifkrmuy3cr5+I6WdioRfAP5dcJPhAGWXbx Za0eckGmIFu8rTTK+/cvKcxzaAuu91AGh6rjO+OGMPDvkbPiKwDiR8LugwKaEgMRwM1/ Gjunaq0W1h3xnZNs3qw9oFlNpuoo3vYVvww6X65wvkm6obVIAAbiOWjPJ4yXUzBph5vv +0wuZmosfAIM6lK6plw03gu5efDkduTnVHAxM2G2Lyqp/sb9HnrdIeTkcR8tvfu7TaLJ eEYB6pWPQoOiqTXai0PM7RkDtimLd7f2VY1B06UzBgmgrp19h2dOnN+GcN9lghluotjQ h1gg== X-Gm-Message-State: AOJu0Yx3dyRF69NI7/nqDqcGQFFp2wwvJ0S1xEGfLghlGRrqAIiS/1YQ dtlupl8RvChN8S2dVZiq2/U= X-Google-Smtp-Source: AGHT+IEd6FKDf2LUftPdhsoDiwuk7hY3RyxprWEjQIOiy+tECLHywU9E044swelPCq0F+bD0scVt7w== 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230811_124048_871105_1CA7EA83 X-CRM114-Status: GOOD ( 12.70 ) 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: Jernej Skrabec Reviewed-by: Alexandru Ardelean --- 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;