From patchwork Mon Aug 7 11:27:05 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Coardos X-Patchwork-Id: 13344108 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 4B46EC001DF for ; Mon, 7 Aug 2023 12:30:34 +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=QiVoKCe+YqEXxfkVD1aTYLHWJ3hkuzC14qJFKW0FtoM=; b=JDdbWFkTqEQ35O BzeMdbGFmYxJEKLNgdEZA29S8puTlhPzEdstveKbKTdUTXTtKa6j7XCNdxkgEegN3FUB+RSnnQM7M LSegATk0ATzyky/CbTwo8Y67KgUyue7LfEOdREngPkCnPLErlQ+0p426B1p6k/6yoy9encR9tK643 QREr5jEwLN+dI13maaYfDtpe0YcfueWmZvauyF86+X3pMcFBzWv2rIlUGDTSMA48Ovoy48EyQlfPn JqLq/JTCN4hbzdri65fJpo4sv7uYminCSFzzBkZ/ZuY6NY3Fn+mkq/SnVQ5Y7chlz0OuErIbWykAv 4dWe3pOf6K1wm+yCU9Fw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qSzNW-00HDFB-0E; Mon, 07 Aug 2023 12:30:30 +0000 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qSyOW-00H5GH-34 for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2023 11:27:30 +0000 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-3fbd33a57b6so43645225e9.2 for ; Mon, 07 Aug 2023 04:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691407643; x=1692012443; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=kxk0yn3bHsd/RJ0FbkAiNgx85t4pR2+Dv2sbpn4c78Y=; b=m4SenbcsFt674qRn5+kbUSBCfNEsLcMWFRLZaeBmV10RzglyGuRzP4jfRANirlcQtk SDxNwHu+Dcv35Sip1lM+Srw3cPoyfhSdZywk6VPBxuQxNb3JtYLtF467sRJ8jjtUYAr0 hl4wnwf/AeTgqsFGqnxRMT/BHx3JLT5lA8VcmPGe3Y9l4If6LcbymihK3qGnZYVvbf1S qFqgDF2ruqeZhxkpS11FazdO8zsPs0/MqIlzElBJqMv+Vz1zuYQGT7+NL2mvBKJz97ev n/qAj+0cEwaHVM6keRFewEsu75YydVB8vQw2D1dDvOaYIcW9zZeftxe7butWFQ5AOIMJ sbzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691407643; x=1692012443; 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=kxk0yn3bHsd/RJ0FbkAiNgx85t4pR2+Dv2sbpn4c78Y=; b=di2KjZZNFGP0VAZVxoabQV6U32JwGeuQ9H5LFH0mBWwsWNAsqnQrF+eDIXm8lBdVFp w8Tq1LvNhncbAflNXsK5/TG6bB2qZ10+6UbYzH1HRlTN1UEuCsEs0zIU3AXaVKFE4m33 DMHOmMtcaUoHgu3sUMwGWEmeIYPF3puiweP6dCVLI1DujvJmw+GAZT8FApSLMu3yE4Ui mMo3YeqTJijpYdcfW/8k34hQ75HmU4GT4UbEXQg7Q7+nu/h+F/dY961JARWpiZ4GDeov b30r1Fyx2VzKRA7A09PCmGvznc2yD3MLBVMrpwlkqJs4DYLP64BryWLAilfJQSl/Bkyz VL+g== X-Gm-Message-State: AOJu0Yy8cYubgvXjKZRwyhQbuJ+9QRfgMp8d3JlYOaYDsbqHUz9NL+on p/ILmp5rM/133i30mbaI9Io= X-Google-Smtp-Source: AGHT+IGMBh83Lf6a12odjnWu7+OgCee9BjTsv45wkZZBieJgKm473rbCHKrU7qoTXhavwG8ZHHZK4Q== X-Received: by 2002:a1c:4c15:0:b0:3fe:207c:1aea with SMTP id z21-20020a1c4c15000000b003fe207c1aeamr7010990wmf.23.1691407643550; Mon, 07 Aug 2023 04:27:23 -0700 (PDT) Received: from localhost.localdomain ([92.85.190.61]) by smtp.gmail.com with ESMTPSA id s22-20020a7bc396000000b003fc0505be19sm10401106wmj.37.2023.08.07.04.27.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 04:27:23 -0700 (PDT) From: Andrei Coardos To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: mhiramat@kernel.org, hayashi.kunihiko@socionext.com, p.zabel@pengutronix.de, alex@shruggie.ro, Andrei Coardos Subject: [PATCH] reset: uniphier-glue: remove unneeded call to platform_set_drvdata() Date: Mon, 7 Aug 2023 14:27:05 +0300 Message-Id: <20230807112705.12862-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-20230807_042728_989052_D291B667 X-CRM114-Status: GOOD ( 11.95 ) 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 --- drivers/reset/reset-uniphier-glue.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/reset/reset-uniphier-glue.c b/drivers/reset/reset-uniphier-glue.c index 15abac9fc72c..df41b75786ad 100644 --- a/drivers/reset/reset-uniphier-glue.c +++ b/drivers/reset/reset-uniphier-glue.c @@ -99,8 +99,6 @@ static int uniphier_glue_reset_probe(struct platform_device *pdev) priv->rdata.rcdev.of_node = dev->of_node; priv->rdata.active_low = true; - platform_set_drvdata(pdev, priv); - return devm_reset_controller_register(dev, &priv->rdata.rcdev); }