From 5f0333d896c89748f6a54dcd36b4fa6e34264bbf Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 30 May 2009 09:53:59 +0000 Subject: cleanup old patches and kernel configuration SVN-Revision: 16204 --- .../patches-2.6.28/003-gpio_bit_setting.patch | 28 ---------------------- 1 file changed, 28 deletions(-) delete mode 100644 target/linux/rb532/patches-2.6.28/003-gpio_bit_setting.patch (limited to 'target/linux/rb532/patches-2.6.28/003-gpio_bit_setting.patch') diff --git a/target/linux/rb532/patches-2.6.28/003-gpio_bit_setting.patch b/target/linux/rb532/patches-2.6.28/003-gpio_bit_setting.patch deleted file mode 100644 index 80272ae..0000000 --- a/target/linux/rb532/patches-2.6.28/003-gpio_bit_setting.patch +++ /dev/null @@ -1,28 +0,0 @@ -The algorithm works unconditionally. If bitval is one, the first line is -a no op and the second line sets the bit at offset position. Vice versa, -if bitval is zero, the first line clears the bit at offset position and -the second line is a no op. - -Signed-off-by: Phil Sutter ---- - arch/mips/rb532/gpio.c | 6 ++---- - 1 files changed, 2 insertions(+), 4 deletions(-) - ---- a/arch/mips/rb532/gpio.c -+++ b/arch/mips/rb532/gpio.c -@@ -119,13 +119,11 @@ static inline void rb532_set_bit(unsigne - unsigned long flags; - u32 val; - -- bitval = !!bitval; /* map parameter to {0,1} */ -- - local_irq_save(flags); - - val = readl(ioaddr); -- val &= ~( ~bitval << offset ); /* unset bit if bitval == 0 */ -- val |= ( bitval << offset ); /* set bit if bitval == 1 */ -+ val &= ~(!bitval << offset); /* unset bit if bitval == 0 */ -+ val |= (!!bitval << offset); /* set bit if bitval == 1 */ - writel(val, ioaddr); - - local_irq_restore(flags); -- cgit v1.1