From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pa0-f52.google.com ([209.85.220.52]:39980 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752953AbbAOPda (ORCPT ); Thu, 15 Jan 2015 10:33:30 -0500 From: Athira Lekshmi To: wim@iguana.be Cc: linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org, Athira Lekshmi Subject: [PATCH v2 7/8] watchdog: at91sam9_wdt: Fixed missing blank line warning Date: Thu, 15 Jan 2015 21:02:05 +0530 Message-Id: <1421335926-3321-7-git-send-email-andnlnbn18@gmail.com> In-Reply-To: <1421335926-3321-1-git-send-email-andnlnbn18@gmail.com> References: <1421335926-3321-1-git-send-email-andnlnbn18@gmail.com> Sender: linux-watchdog-owner@vger.kernel.org List-Id: linux-watchdog@vger.kernel.org Add a blank line after declarations to remove the checkpatch warning: 'Missing blank line after declarations' Signed-off-by: Athira Lekshmi --- Changes in v2: - Make the commit message more clearer. drivers/watchdog/at91sam9_wdt.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index 489729b..794a34a 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -82,6 +82,7 @@ MODULE_PARM_DESC(nowayout, "Watchdog cannot be stopped once started " #define to_wdt(wdd) container_of(wdd, struct at91wdt, wdd) struct at91wdt { struct watchdog_device wdd; + void __iomem *base; unsigned long next_heartbeat; /* the next_heartbeat for the timer */ struct timer_list timer; /* The timer that pings the watchdog */ @@ -121,6 +122,7 @@ static inline void at91_wdt_reset(struct at91wdt *wdt) static void at91_ping(unsigned long data) { struct at91wdt *wdt = (struct at91wdt *)data; + if (time_before(jiffies, wdt->next_heartbeat) || !watchdog_active(&wdt->wdd)) { at91_wdt_reset(wdt); @@ -372,6 +374,7 @@ static int __init at91wdt_probe(struct platform_device *pdev) static int __exit at91wdt_remove(struct platform_device *pdev) { struct at91wdt *wdt = platform_get_drvdata(pdev); + watchdog_unregister_device(&wdt->wdd); pr_warn("I quit now, hardware will probably reboot!\n"); -- 1.7.9.5