コード例 #1
0
ファイル: ath79_wdt.c プロジェクト: 7799/linux
static int ath79_wdt_release(struct inode *inode, struct file *file)
{
	if (test_bit(WDT_FLAGS_EXPECT_CLOSE, &wdt_flags))
		ath79_wdt_disable();
	else {
		pr_crit("device closed unexpectedly, watchdog timer will not stop!\n");
		ath79_wdt_keepalive();
	}

	clear_bit(WDT_FLAGS_BUSY, &wdt_flags);
	clear_bit(WDT_FLAGS_EXPECT_CLOSE, &wdt_flags);

	return 0;
}
コード例 #2
0
ファイル: ath79_wdt.c プロジェクト: 33d/linux-2.6.21-hh20
static void ath97_wdt_shutdown(struct platform_device *pdev)
{
	ath79_wdt_disable();
}