From patchwork Mon Aug 7 11:43:44 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrei Coardos X-Patchwork-Id: 13344004 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 6C1E3EB64DD for ; Mon, 7 Aug 2023 11:44:24 +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=6lrS338SZ5df3vb9fQ+3l7AeA/5QpuI44hwTJ/EJrt0=; b=0DFCZ3rv7+F6on y1uiixKbSYVhnJ/lKxFKkT80T9u7IczP+yV/VgvqT790oT/zw9nXWI/8R7xxxltXS4WFKuyet1s13 DBcrFuyuIe68sOOMgsQeLHt8FSUMg3Cqg5RcmaaAHfAFVTx1bKXcYvVSlt/1KxT9l/5cVi1Vp3F6z 87tB7I0OTIZm5kDCSivhJrCG7bBVaJoBrZZOby+PF7ETaHhD0jkW64Mw2VYrE57IFPkesYVB8d3Ny /eX+PQb+jEZaSLL/2+Rj26PVx8mrh61ANpHCVbQ50fMg/hLI0UqHL0io4wL11EzhRVOrdhEsG7LZ7 XbnAyQ61TBY5mgQi1shw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qSyeY-00H7eY-2H; Mon, 07 Aug 2023 11:44:02 +0000 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qSyeV-00H7dS-1g for linux-arm-kernel@lists.infradead.org; Mon, 07 Aug 2023 11:44:00 +0000 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-3fe12baec61so37489385e9.2 for ; Mon, 07 Aug 2023 04:43:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691408636; x=1692013436; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=diZtgH47DFaB28o0Ll3wrErtkFsWvVQ/oMefCRv/4ic=; b=ps3YWkdx1HcSAmLPS089rlIJpSuI64cHKtoWoVJLXaz9bmUO8CYYKxRsu48t0c2Vyw Zm4d4w3rPkyWmmluV+FKennlWxz/nOMBMMPV0II/7D2NjwerQuco6ukQ0GbStpLL8fLd axf1Eb5OLcPRrELjkOVY8kBvDoJka8LIGzB3i28hWgI7cfxRNX7KvttOUavQWb5AdZ9A MlwjakT81rG6Hm0ydUbQtPWB7f3l+zGvVJZe7LdpAVijCDQA1R8XbmQfguIXiORoYrt6 qiijHlpav1JcjO0yWuDS4EoIG9Vev5hvt799YxqjSHDLFkPDmS6tXbbxQYi12Y5pcd0M KmZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691408636; x=1692013436; 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=diZtgH47DFaB28o0Ll3wrErtkFsWvVQ/oMefCRv/4ic=; b=E+GveFRc7DMATNTfHHBkhfnqI0QS1wYI9j/+7YaGQ8+Qkz9XK8wbPtLn/AoDY/P8Nr IBC1W2FEIX0iYTkvdzVqPeHzZpnpVbb2BMZS2hNgBSqRkB/14H5gCkXquVfcyhpYSU3p lqQVjetZSpjee77XtzA0fT3elJqAg503UPvtXHS0zikY/l8jJzo76fvZ/HWlyHuUSa97 VIiZHauoSzm7neF5nyme9oUfKUmfhbGi6/otrsQWkdQfkpYTl8zlDgSm08Dbclw1rI3o mTxy3W0/EGHFsSGAAZywPpuzlt0sBuuAbnUUoUgTHHO5YGPS5eS+HTU0tRt+RpC++KbQ yW2w== X-Gm-Message-State: AOJu0YxlnUav4aZdPnOo6UIka+cBM2amw07577XYE2mXbq0DW7YEayvH JgulfGJp9zzyGDdt4psssy8= X-Google-Smtp-Source: AGHT+IEF+Zz2t3qfwolQNpLoMIq+pfbcJGy7AhHY7DQbZbK59/acuV278dYxW7FMArXTWssuNb8LMA== X-Received: by 2002:adf:e8cd:0:b0:317:9537:d746 with SMTP id k13-20020adfe8cd000000b003179537d746mr5332011wrn.2.1691408635640; Mon, 07 Aug 2023 04:43:55 -0700 (PDT) Received: from localhost.localdomain ([92.85.190.61]) by smtp.gmail.com with ESMTPSA id t12-20020adfe10c000000b0031758e7ba6dsm10273616wrz.40.2023.08.07.04.43.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Aug 2023 04:43:55 -0700 (PDT) From: Andrei Coardos To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: michal.simek@amd.com, p.zabel@pengutronix.de, alex@shruggie.ro, Andrei Coardos Subject: [PATCH] reset: zynqmp: removed unneeded call to platform_set_drvdata() Date: Mon, 7 Aug 2023 14:43:44 +0300 Message-Id: <20230807114344.15076-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_044359_558681_5D233E8F X-CRM114-Status: GOOD ( 12.50 ) 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 --- drivers/reset/reset-zynqmp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/reset/reset-zynqmp.c b/drivers/reset/reset-zynqmp.c index 59dc0ff9af9e..510c168d635f 100644 --- a/drivers/reset/reset-zynqmp.c +++ b/drivers/reset/reset-zynqmp.c @@ -107,8 +107,6 @@ static int zynqmp_reset_probe(struct platform_device *pdev) if (!priv->data) return -EINVAL; - platform_set_drvdata(pdev, priv); - priv->rcdev.ops = &zynqmp_reset_ops; priv->rcdev.owner = THIS_MODULE; priv->rcdev.of_node = pdev->dev.of_node;