Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5120861yba; Wed, 10 Apr 2019 11:47:47 -0700 (PDT) X-Google-Smtp-Source: APXvYqzHDP2L8W6YmHU8Op7g9F6ppta9QJNhAL2Vs7fOjDPmSbiPY0C5U2ayZbcxsb19XhOMFcZE X-Received: by 2002:a63:d5f:: with SMTP id 31mr40968317pgn.208.1554922067057; Wed, 10 Apr 2019 11:47:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554922067; cv=none; d=google.com; s=arc-20160816; b=H6j9s2dC4I9kORDM599vpAgvxUcoWFfOUJ0230/ob0MxJBqfYhJuEoWfFyvbrQz7Y2 8ZkY7ifju9+R+U2ClNXxODNyDFeNEwbkeMpsYKinFgSn9QfNVG8pE/6LhDRKw9NAbVoc aPryIwX6xl3gLHxq4gfGQK6O6rHrMTDzKwP4ONgInr7/9IcWIcPdVBWvo58LzfyAItV7 OLxE+i1aYAnkUb4A/H0SgwHtgHAx2aDvtYu0XSsgg4RQzMOr2bg439sBmK56iuA3YH/h a97p1lYkeMYR/UL0V4Hd1o6CSFYR1pQFsLkAV8SZU+wUrI6VPQUffagh+bfTvKrcIzYj RWXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=n2dbwiTzjex313CSAoOauK9n+B2nkUG9p1gWKyCrLDw=; b=zyXO5l9HRVec2BxtLceTtDGj8Zb281ntnmpC/1m1dxBD1hDcb/LsioptCvSOwwLslb XiQWGJFrLR51kHmx4slKcXOGOiQvzaYzcCaUgAedBjAorxXiIWWU/qG68S3Bd5mttAF+ t160t/h16pUL9l7jm/UgNxwJDqSDElLoGA1p3cRaIaNkU3piYgTU04VvYy1S0GyrAdzK ndkzFDOay2MQcpghNxZUUwYOY5YfqrodsBj4+0mELmDuhEUwNNl2tPU9SLjiGHpilAxv k0MEs5VGxdQsLphOnYU7Q73hVjw42BhBZ9BFSAPSCvK3zr4P9SC7IXL/+NFRCJRbGR0p CJ6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MBy0ULhc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u7si26167835plq.31.2019.04.10.11.47.30; Wed, 10 Apr 2019 11:47:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=MBy0ULhc; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387846AbfDJQaB (ORCPT + 99 others); Wed, 10 Apr 2019 12:30:01 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:43606 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731977AbfDJQ2Q (ORCPT ); Wed, 10 Apr 2019 12:28:16 -0400 Received: by mail-pl1-f196.google.com with SMTP id n8so1719128plp.10; Wed, 10 Apr 2019 09:28:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=n2dbwiTzjex313CSAoOauK9n+B2nkUG9p1gWKyCrLDw=; b=MBy0ULhcPapht1HIARJ+gUc8r5fKZG8nKEYFvd6MAjP3G+QkK9PG5CB3Ip5T2LMUvb ZfLjfJmBnXsQTsrPd0BfVjUZCYi6BQEom+EMsH8GhyyxML81ABmhRSeL6klHeF0nHPz2 ipit3lT1GBFm3RmY0gFjFTLc5dVtrYbmCc1a/l5FRLxVrK3vja8ZO1FpQyBGpGIG9mdg waddcDYBRzNl2GJ6+pSuAMf54pyJa+Frsx5mnrYSuNAqB1oHVgm7JXR64Dqm9GIhkU9s 6MxH19IxPVoteCQnEwQtElB7a0KTCVlL3b9Ym8vN1P4wnxjy6COJvQDbvAjmfrDlZU8i LuhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=n2dbwiTzjex313CSAoOauK9n+B2nkUG9p1gWKyCrLDw=; b=N9jat8XY542vKT3AM2LZfOMcIiPbDM0byOZGVY6+Q0O0k7w8BPP8fmwYjkMWNncyvp gg7h3FysBmC+ovXY4m3/CcHMApzkOTepDgDafOR0tgax1rjL6LG5K8/1ohVmv8t26gLm Oq48d+gmV5tzLRa3enIE8rC8ubC1ipzhtMgfXhbo+bswQ8ujvi1KuoneAJ5uRmIZtbzN t2Jc0PBEac85UY0eWnpFLDUWQ9BlScdfKc4Q5SYR65VMLi3yvRvGvARNQlqf4yH5Ema/ /ZdrRj2hGY/wUvHeyf51JfX5noQQxrntGAE5sWnoD3hvYWFi38IxvgzcnWJy4bioifwk 5GNg== X-Gm-Message-State: APjAAAX8n/XxzZhpc4XmEvp6PWNhKsIZtRsEtjg2UQ+WXlqeacJ+aaBt Z9Eqzo/zBXd6APSMBy88aZcA0ge4 X-Received: by 2002:a17:902:110b:: with SMTP id d11mr6750867pla.275.1554913696222; Wed, 10 Apr 2019 09:28:16 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id g2sm54659978pfd.134.2019.04.10.09.28.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 10 Apr 2019 09:28:15 -0700 (PDT) From: Guenter Roeck To: Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck , Masahiro Yamada Subject: [PATCH 06/22] watchdog: uniphier_wdt: drop platform_set_drvdata Date: Wed, 10 Apr 2019 09:27:47 -0700 Message-Id: <1554913683-25454-7-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554913683-25454-1-git-send-email-linux@roeck-us.net> References: <1554913683-25454-1-git-send-email-linux@roeck-us.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is no call to dev_get_drvdata() or platform_get_drvdata() in the driver. Drop the unnecessary call to platform_set_drvdata(). The conversion was done automatically with coccinelle using the following semantic patches. The semantic patches and the scripts used to generate this commit log are available at https://github.com/groeck/coccinelle-patches Cc: Masahiro Yamada Signed-off-by: Guenter Roeck --- drivers/watchdog/uniphier_wdt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/watchdog/uniphier_wdt.c b/drivers/watchdog/uniphier_wdt.c index e20a7a459d69..8e9242c23022 100644 --- a/drivers/watchdog/uniphier_wdt.c +++ b/drivers/watchdog/uniphier_wdt.c @@ -191,8 +191,6 @@ static int uniphier_wdt_probe(struct platform_device *pdev) if (!wdev) return -ENOMEM; - platform_set_drvdata(pdev, wdev); - parent = of_get_parent(dev->of_node); /* parent should be syscon node */ regmap = syscon_node_to_regmap(parent); of_node_put(parent); -- 2.7.4