diff options
| author | Jochen Friedrich <jochen@scram.de> | 2008-07-24 12:22:05 +0200 | 
|---|---|---|
| committer | Wim Van Sebroeck <wim@iguana.be> | 2008-08-26 20:19:56 +0000 | 
| commit | eaa95eb6ea43e6de8bea702c13556de9a1a1195a (patch) | |
| tree | 76bd1f60d25550117128f4be673b66e0dce8a227 /drivers/watchdog | |
| parent | 0e65fb2978467a3538af69858ae6bc13d332b9b2 (diff) | |
[WATHDOG] delete unused driver mpc8xx_wdt.c
The watchdog driver mpc8xx_wdt.c was a device interface to
arch/ppc/syslib/m8xx_wdt.c for MPC8xx hardware. Now that ARCH=ppc is
gone, this driver is of no more use. For ARCH=powerpc, MPC8xx hardware
is supported by mpc8xxx_wdt.c.
Signed-off-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
Acked-by: Vitaly Bordug <vitb@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'drivers/watchdog')
| -rw-r--r-- | drivers/watchdog/Kconfig | 4 | ||||
| -rw-r--r-- | drivers/watchdog/Makefile | 1 | ||||
| -rw-r--r-- | drivers/watchdog/mpc8xx_wdt.c | 170 | 
3 files changed, 0 insertions, 175 deletions
| diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index db20542796bf..a8e80f2eb8ae 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -692,10 +692,6 @@ config MPC5200_WDT  	tristate "MPC5200 Watchdog Timer"  	depends on PPC_MPC52xx -config 8xx_WDT -	tristate "MPC8xx Watchdog Timer" -	depends on 8xx -  config 8xxx_WDT  	tristate "MPC8xxx Platform Watchdog Timer"  	depends on PPC_8xx || PPC_83xx || PPC_86xx diff --git a/drivers/watchdog/Makefile b/drivers/watchdog/Makefile index ca3dc043d786..1b5c0118cfe6 100644 --- a/drivers/watchdog/Makefile +++ b/drivers/watchdog/Makefile @@ -104,7 +104,6 @@ obj-$(CONFIG_TXX9_WDT) += txx9wdt.o  # PARISC Architecture  # POWERPC Architecture -obj-$(CONFIG_8xx_WDT) += mpc8xx_wdt.o  obj-$(CONFIG_MPC5200_WDT) += mpc5200_wdt.o  obj-$(CONFIG_8xxx_WDT) += mpc8xxx_wdt.o  obj-$(CONFIG_MV64X60_WDT) += mv64x60_wdt.o diff --git a/drivers/watchdog/mpc8xx_wdt.c b/drivers/watchdog/mpc8xx_wdt.c deleted file mode 100644 index 1336425acf20..000000000000 --- a/drivers/watchdog/mpc8xx_wdt.c +++ /dev/null @@ -1,170 +0,0 @@ -/* - * mpc8xx_wdt.c - MPC8xx watchdog userspace interface - * - * Author: Florian Schirmer <jolt@tuxbox.org> - * - * 2002 (c) Florian Schirmer <jolt@tuxbox.org> This file is licensed under - * the terms of the GNU General Public License version 2. This program - * is licensed "as is" without any warranty of any kind, whether express - * or implied. - */ - -#include <linux/fs.h> -#include <linux/init.h> -#include <linux/kernel.h> -#include <linux/miscdevice.h> -#include <linux/module.h> -#include <linux/watchdog.h> -#include <asm/8xx_immap.h> -#include <linux/uaccess.h> -#include <linux/io.h> -#include <syslib/m8xx_wdt.h> - -static unsigned long wdt_opened; -static int wdt_status; -static spinlock_t wdt_lock; - -static void mpc8xx_wdt_handler_disable(void) -{ -	volatile uint __iomem *piscr; -	piscr = (uint *)&((immap_t *)IMAP_ADDR)->im_sit.sit_piscr; - -	if (!m8xx_has_internal_rtc) -		m8xx_wdt_stop_timer(); -	else -		out_be32(piscr, in_be32(piscr) & ~(PISCR_PIE | PISCR_PTE)); -	printk(KERN_NOTICE "mpc8xx_wdt: keep-alive handler deactivated\n"); -} - -static void mpc8xx_wdt_handler_enable(void) -{ -	volatile uint __iomem *piscr; -	piscr = (uint *)&((immap_t *)IMAP_ADDR)->im_sit.sit_piscr; - -	if (!m8xx_has_internal_rtc) -		m8xx_wdt_install_timer(); -	else -		out_be32(piscr, in_be32(piscr) | PISCR_PIE | PISCR_PTE); -	printk(KERN_NOTICE "mpc8xx_wdt: keep-alive handler activated\n"); -} - -static int mpc8xx_wdt_open(struct inode *inode, struct file *file) -{ -	if (test_and_set_bit(0, &wdt_opened)) -		return -EBUSY; -	m8xx_wdt_reset(); -	mpc8xx_wdt_handler_disable(); -	return nonseekable_open(inode, file); -} - -static int mpc8xx_wdt_release(struct inode *inode, struct file *file) -{ -	m8xx_wdt_reset(); -#if !defined(CONFIG_WATCHDOG_NOWAYOUT) -	mpc8xx_wdt_handler_enable(); -#endif -	clear_bit(0, &wdt_opened); -	return 0; -} - -static ssize_t mpc8xx_wdt_write(struct file *file, const char *data, -						size_t len, loff_t *ppos) -{ -	if (len) { -		spin_lock(&wdt_lock); -		m8xx_wdt_reset(); -		spin_unlock(&wdt_lock); -	} -	return len; -} - -static long mpc8xx_wdt_ioctl(struct file *file, -					unsigned int cmd, unsigned long arg) -{ -	int timeout; -	static struct watchdog_info info = { -		.options = WDIOF_KEEPALIVEPING, -		.firmware_version = 0, -		.identity = "MPC8xx watchdog", -	}; - -	switch (cmd) { -	case WDIOC_GETSUPPORT: -		if (copy_to_user((void *)arg, &info, sizeof(info))) -			return -EFAULT; -		break; - -	case WDIOC_GETSTATUS: -	case WDIOC_GETBOOTSTATUS: -		if (put_user(wdt_status, (int *)arg)) -			return -EFAULT; -		wdt_status &= ~WDIOF_KEEPALIVEPING; -		break; - -	case WDIOC_GETTEMP: -		return -EOPNOTSUPP; - -	case WDIOC_SETOPTIONS: -		return -EOPNOTSUPP; - -	case WDIOC_KEEPALIVE: -		spin_lock(&wdt_lock); -		m8xx_wdt_reset(); -		wdt_status |= WDIOF_KEEPALIVEPING; -		spin_unlock(&wdt_lock); -		break; - -	case WDIOC_SETTIMEOUT: -		return -EOPNOTSUPP; - -	case WDIOC_GETTIMEOUT: -		spin_lock(&wdt_lock); -		timeout = m8xx_wdt_get_timeout(); -		spin_unlock(&wdt_lock); -		if (put_user(timeout, (int *)arg)) -			return -EFAULT; -		break; - -	default: -		return -ENOTTY; -	} - -	return 0; -} - -static const struct file_operations mpc8xx_wdt_fops = { -	.owner = THIS_MODULE, -	.llseek = no_llseek, -	.write = mpc8xx_wdt_write, -	.unlocked_ioctl = mpc8xx_wdt_ioctl, -	.open = mpc8xx_wdt_open, -	.release = mpc8xx_wdt_release, -}; - -static struct miscdevice mpc8xx_wdt_miscdev = { -	.minor = WATCHDOG_MINOR, -	.name = "watchdog", -	.fops = &mpc8xx_wdt_fops, -}; - -static int __init mpc8xx_wdt_init(void) -{ -	spin_lock_init(&wdt_lock); -	return misc_register(&mpc8xx_wdt_miscdev); -} - -static void __exit mpc8xx_wdt_exit(void) -{ -	misc_deregister(&mpc8xx_wdt_miscdev); - -	m8xx_wdt_reset(); -	mpc8xx_wdt_handler_enable(); -} - -module_init(mpc8xx_wdt_init); -module_exit(mpc8xx_wdt_exit); - -MODULE_AUTHOR("Florian Schirmer <jolt@tuxbox.org>"); -MODULE_DESCRIPTION("MPC8xx watchdog driver"); -MODULE_LICENSE("GPL"); -MODULE_ALIAS_MISCDEV(WATCHDOG_MINOR); | 
