From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752923Ab3BAHHp (ORCPT ); Fri, 1 Feb 2013 02:07:45 -0500 Received: from newsmtp5.atmel.com ([204.2.163.5]:6078 "EHLO sjogate2.atmel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750894Ab3BAHHo (ORCPT ); Fri, 1 Feb 2013 02:07:44 -0500 From: Wenyou Yang To: linux-arm-kernel@lists.infradead.org Cc: nicolas.ferre@atmel.com, plagnioj@jcrosoft.com, fabio.porcedda@gmail.com, JM.Lin@atmel.com, wenyou.yang@atmel.com, wim@iguana.be, linux-watchdog@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v4 4/8] watchdog/at91sam9_wdt: Adjust the options of watchdog_info Date: Fri, 1 Feb 2013 15:06:22 +0800 Message-Id: <1359702386-21284-5-git-send-email-wenyou.yang@atmel.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1359702386-21284-1-git-send-email-wenyou.yang@atmel.com> References: <1359702386-21284-1-git-send-email-wenyou.yang@atmel.com> X-OriginalArrivalTime: 01 Feb 2013 07:07:26.0419 (UTC) FILETIME=[CA6F3A30:01CE004A] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since the Watchdog Timer Mode Register can be only written only once, so the watchdog_info shall not support WDIOF_SETTIMEOUT and WDIOF_MAGICCLOSE options, remove them. Signed-off-by: Wenyou Yang Cc: wim@iguana.be Cc: linux-watchdog@vger.kernel.org Cc: linux-kernel@vger.kernel.org --- drivers/watchdog/at91sam9_wdt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index ce7930b..c6d9f1f 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -152,8 +152,7 @@ static int at91wdt_enable(struct watchdog_device *wddev, unsigned int timeout) static const struct watchdog_info at91_wdt_info = { .identity = DRV_NAME, - .options = WDIOF_SETTIMEOUT | WDIOF_KEEPALIVEPING | - WDIOF_MAGICCLOSE, + .options = WDIOF_KEEPALIVEPING, }; static int at91wdt_start(struct watchdog_device *wddev) -- 1.7.9.5