From patchwork Mon Apr 8 19:38:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 10890025 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A2CD21669 for ; Mon, 8 Apr 2019 19:40:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D245285A4 for ; Mon, 8 Apr 2019 19:40:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8172E286FE; Mon, 8 Apr 2019 19:40:53 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.7 required=2.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 23BB1285A4 for ; Mon, 8 Apr 2019 19:40:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729278AbfDHTks (ORCPT ); Mon, 8 Apr 2019 15:40:48 -0400 Received: from mail-pl1-f196.google.com ([209.85.214.196]:40820 "EHLO mail-pl1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728917AbfDHTj6 (ORCPT ); Mon, 8 Apr 2019 15:39:58 -0400 Received: by mail-pl1-f196.google.com with SMTP id b3so7903573plr.7; Mon, 08 Apr 2019 12:39:58 -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=jqPXp0iBEFCnb3no5w/iR1we3MDq7vr6GEB66fBaE5Y=; b=j3/RF5WAM1wCQ0DLzUpWd/5ixzId/0mDWrKgTn/EjvS874ELVqpE0LGrEL4bCWk7Xb KJlLhbEOflBQdtrCSXuqMtnXl5XIJIgIy+b5YQIi1vNiLXxWOBBFEqUqMLqnT1Y5fZl2 PIZw7HaJuz/x8OKUN4wmTZDg/UMmmYWIeQ1bDxgeg3kzWOLM3rVzQ/oXetjJNmEGl9GY VZ4OJOekSxhnxeAmIrvbhOOXZlGUQPGT5wTPT4s2EsVR9dmAi5biOwwysbSc1uzpjFvu wwIXYj+FA9ciDDKUC9w4KwA8hOIhcc1Qk+rXFTd2DGdYnbkppuFW26Ra650kRO1jDqCO ZwIw== 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=jqPXp0iBEFCnb3no5w/iR1we3MDq7vr6GEB66fBaE5Y=; b=mzLFNR9JK2VF7eUOAPlhb19aRMyNSoM8E3YfqLdBfC4Tq0QTA/sCm3eXmzB8S7K+rA cd+cBIcMUkUPAjxHd4QcpRmFqaJ/XD59f+HV9TOFithZgYX9EjUDxtB3Oc5usiLQ2HFj U+5zgHL2tdBiXJz0YOVk7Kx4y/NF2YvzwkSrll/Kyd06iewncEhO2oIXSU3ACEUnvaN7 A8OwNvXAigUra8ZUZzBRZm/kHnb7WTOWfCy3fglekuBz4oRo8ZrL5+Gw1dWEpIc39Rk9 t6VA86VfR9h0vASU4No6IWCLrm8oq5f6B9eaGN9oOQd1Bqu20+7M/kwBVBNchBnztY8k V72w== X-Gm-Message-State: APjAAAUFVdWuNL0C2L9qZSRLurnxnypbKY9023dzJot+16m9rSxUD0rN pQ20MWsJGaRbavmpfAty07k= X-Google-Smtp-Source: APXvYqzKa1gehAiNWUuVbLk4x+Pb7P6Aka9tjtI+Th71oA4N8J0ud0EW9kZuY8Hc91ZvWgnWb4Bf+w== X-Received: by 2002:a17:902:110c:: with SMTP id d12mr6041054pla.47.1554752398258; Mon, 08 Apr 2019 12:39:58 -0700 (PDT) Received: from localhost ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id f65sm49173051pff.21.2019.04.08.12.39.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Apr 2019 12:39:57 -0700 (PDT) From: Guenter Roeck To: Wim Van Sebroeck Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Guenter Roeck Subject: [PATCH 15/22] watchdog: ftwdt010_wdt: Use 'dev' consistently Date: Mon, 8 Apr 2019 12:38:39 -0700 Message-Id: <1554752326-13319-16-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1554752326-13319-1-git-send-email-linux@roeck-us.net> References: <1554752326-13319-1-git-send-email-linux@roeck-us.net> Sender: linux-watchdog-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-watchdog@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use local variable 'dev' consistently. 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 Signed-off-by: Guenter Roeck --- drivers/watchdog/ftwdt010_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/ftwdt010_wdt.c b/drivers/watchdog/ftwdt010_wdt.c index ecb32c42e839..9ea0e56fa7ee 100644 --- a/drivers/watchdog/ftwdt010_wdt.c +++ b/drivers/watchdog/ftwdt010_wdt.c @@ -169,7 +169,7 @@ static int ftwdt010_wdt_probe(struct platform_device *pdev) ret = devm_watchdog_register_device(dev, &gwdt->wdd); if (ret) { - dev_err(&pdev->dev, "failed to register watchdog\n"); + dev_err(dev, "failed to register watchdog\n"); return ret; }