From patchwork Wed Aug 29 07:42:39 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wolfram Sang X-Patchwork-Id: 10579617 X-Patchwork-Delegate: geert@linux-m68k.org 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 A6DB25A4 for ; Wed, 29 Aug 2018 07:42:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 995592A7A5 for ; Wed, 29 Aug 2018 07:42:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8DEE42A7B7; Wed, 29 Aug 2018 07:42:46 +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.9 required=2.0 tests=BAYES_00,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 506442A7B8 for ; Wed, 29 Aug 2018 07:42:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727863AbeH2LiT (ORCPT ); Wed, 29 Aug 2018 07:38:19 -0400 Received: from sauhun.de ([88.99.104.3]:44870 "EHLO pokefinder.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727677AbeH2LiT (ORCPT ); Wed, 29 Aug 2018 07:38:19 -0400 Received: from localhost (p54B3352D.dip0.t-ipconnect.de [84.179.53.45]) by pokefinder.org (Postfix) with ESMTPSA id 2A2B5343CE7; Wed, 29 Aug 2018 09:42:44 +0200 (CEST) From: Wolfram Sang To: linux-watchdog@vger.kernel.org Cc: linux-renesas-soc@vger.kernel.org, Yoshihiro Shimoda , Wolfram Sang Subject: [RFC PATCH v3 2/4] watchdog: renesas_wdt: avoid removing if NOWAYOUT Date: Wed, 29 Aug 2018 09:42:39 +0200 Message-Id: <20180829074241.1943-3-wsa+renesas@sang-engineering.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20180829074241.1943-1-wsa+renesas@sang-engineering.com> References: <20180829074241.1943-1-wsa+renesas@sang-engineering.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Use the new macro to prevent removing the driver if NOWAYOUT. Signed-off-by: Wolfram Sang --- drivers/watchdog/renesas_wdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/renesas_wdt.c b/drivers/watchdog/renesas_wdt.c index f45cb183fa75..92339c744cce 100644 --- a/drivers/watchdog/renesas_wdt.c +++ b/drivers/watchdog/renesas_wdt.c @@ -302,7 +302,7 @@ static struct platform_driver rwdt_driver = { .probe = rwdt_probe, .remove = rwdt_remove, }; -module_platform_driver(rwdt_driver); +module_watchdog_platform_driver(rwdt_driver, nowayout); MODULE_DESCRIPTION("Renesas WDT Watchdog Driver"); MODULE_LICENSE("GPL v2");