From eddab67494c78e80c717b1ac80d2ac7f2c495a4a Mon Sep 17 00:00:00 2001 From: nbd Date: Tue, 8 Nov 2005 16:51:04 +0000 Subject: add new broadcom system code and new wlan driver (old driver still used by default) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@2395 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- openwrt/target/linux/package/diag/diag_led.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'openwrt/target/linux/package/diag') diff --git a/openwrt/target/linux/package/diag/diag_led.c b/openwrt/target/linux/package/diag/diag_led.c index 8d4acd549..986498825 100644 --- a/openwrt/target/linux/package/diag/diag_led.c +++ b/openwrt/target/linux/package/diag/diag_led.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -47,9 +48,9 @@ static void *sbh; #define DMZ_GPIO (1<<7) static void set_gpio(uint32 mask, uint32 value) { - sb_gpiocontrol(sbh,mask,0); - sb_gpioouten(sbh,mask,mask); - sb_gpioout(sbh,mask,value); + sb_gpiocontrol(sbh,mask, 0, GPIO_DRV_PRIORITY); + sb_gpioouten(sbh,mask,mask,GPIO_DRV_PRIORITY); + sb_gpioout(sbh,mask,value,GPIO_DRV_PRIORITY); } static void v2_set_diag(u8 state) { @@ -122,8 +123,8 @@ static int proc_reset(ctl_table *table, int write, struct file *filp, { if (reset_gpio) { - sb_gpiocontrol(sbh,reset_gpio,reset_gpio); - sb_gpioouten(sbh,reset_gpio,0); + sb_gpiocontrol(sbh,reset_gpio,reset_gpio,GPIO_DRV_PRIORITY); + sb_gpioouten(sbh,reset_gpio,0,GPIO_DRV_PRIORITY); reset=!(sb_gpioin(sbh)&reset_gpio); if (reset_polarity) reset=!reset; @@ -222,8 +223,8 @@ static int __init diag_init() } - sb_gpiocontrol(sbh,reset_gpio,reset_gpio); - sb_gpioouten(sbh,reset_gpio,0); + sb_gpiocontrol(sbh,reset_gpio,reset_gpio,GPIO_DRV_PRIORITY); + sb_gpioouten(sbh,reset_gpio,0,GPIO_DRV_PRIORITY); reset_polarity=!(sb_gpioin(sbh)&reset_gpio); diag_sysctl_header = register_sysctl_table(sys_diag, 0); -- cgit v1.2.3