aboutsummaryrefslogtreecommitdiffstats
path: root/package/fonera-mp3-drv/src
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2007-09-23 00:32:31 +0000
committerJohn Crispin <john@openwrt.org>2007-09-23 00:32:31 +0000
commitd7502c446b47c04e5630534663f6aca0dcb60b1d (patch)
tree74b2a6d5e6d591fa0de947370d172d1c43455233 /package/fonera-mp3-drv/src
parent059b0d3c54098fb3dd71aea81da5c2fd45b9d239 (diff)
downloadupstream-d7502c446b47c04e5630534663f6aca0dcb60b1d.tar.gz
upstream-d7502c446b47c04e5630534663f6aca0dcb60b1d.tar.bz2
upstream-d7502c446b47c04e5630534663f6aca0dcb60b1d.zip
added option to atheros kernel to be able to disable reset button from inside the fon mp3 driver
SVN-Revision: 8969
Diffstat (limited to 'package/fonera-mp3-drv/src')
-rw-r--r--package/fonera-mp3-drv/src/mp3_drv.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/fonera-mp3-drv/src/mp3_drv.c b/package/fonera-mp3-drv/src/mp3_drv.c
index a2d8c79ae6..82863ac411 100644
--- a/package/fonera-mp3-drv/src/mp3_drv.c
+++ b/package/fonera-mp3-drv/src/mp3_drv.c
@@ -31,6 +31,7 @@
#include <linux/init.h>
#include <linux/genhd.h>
#include <linux/device.h>
+#include <asm-mips/mach-atheros/reset.h>
// do we want debuging info ?
#if 0
@@ -282,6 +283,10 @@ static int __init mod_init(void){
printk("mp3_drv.ko : Made by John '2B|!2B' Crispin (john@phrozen.org)\n");
printk("mp3_drv.ko : Starting ...\n");
+ printk("disabling atheros reset button irq\n");
+
+ ar531x_disable_reset_button();
+
if(register_chrdev(DEV_MAJOR, DEV_NAME, &modulemp3_fops)) {
printk( "mp3_drv.ko : Error whilst opening %s (%d)\n", DEV_NAME, DEV_MAJOR);
return( -ENODEV );