diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-05-30 09:53:59 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-05-30 09:53:59 +0000 |
commit | add67d4aaa1762eb330c0d79c7cb54c2cc00a3fc (patch) | |
tree | ccee3b1dd5b7f904d84c708cc1940fa45725e2c3 /target/linux/rb532/patches-2.6.28/003-gpio_bit_setting.patch | |
parent | 17c6861e96b53cc54ec1b4356d9b2f379fe609a4 (diff) | |
download | upstream-add67d4aaa1762eb330c0d79c7cb54c2cc00a3fc.tar.gz upstream-add67d4aaa1762eb330c0d79c7cb54c2cc00a3fc.tar.bz2 upstream-add67d4aaa1762eb330c0d79c7cb54c2cc00a3fc.zip |
[rb532] cleanup old patches and kernel configuration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16204 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/rb532/patches-2.6.28/003-gpio_bit_setting.patch')
-rw-r--r-- | target/linux/rb532/patches-2.6.28/003-gpio_bit_setting.patch | 28 |
1 files changed, 0 insertions, 28 deletions
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 80272aec40..0000000000 --- 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 <n0-1@freewrt.org> ---- - 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); |