diff options
author | Florian Fainelli <florian@openwrt.org> | 2009-04-24 14:34:20 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2009-04-24 14:34:20 +0000 |
commit | 2524718a9abe881afd27717b033f330fd41274d5 (patch) | |
tree | 0d18e005c97fe759034022b4b86cbc5c95469d5f /target/linux/rb532/patches-2.6.27/003-gpio_bit_setting.patch | |
parent | 13bc5e26c93dcc9d99fe0f763271af0859f826ad (diff) | |
download | upstream-2524718a9abe881afd27717b033f330fd41274d5.tar.gz upstream-2524718a9abe881afd27717b033f330fd41274d5.tar.bz2 upstream-2524718a9abe881afd27717b033f330fd41274d5.zip |
remove 2.6.27 we did not use it and went to 2.6.28 directly
SVN-Revision: 15387
Diffstat (limited to 'target/linux/rb532/patches-2.6.27/003-gpio_bit_setting.patch')
-rw-r--r-- | target/linux/rb532/patches-2.6.27/003-gpio_bit_setting.patch | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/target/linux/rb532/patches-2.6.27/003-gpio_bit_setting.patch b/target/linux/rb532/patches-2.6.27/003-gpio_bit_setting.patch deleted file mode 100644 index 49f9f4b3b5..0000000000 --- a/target/linux/rb532/patches-2.6.27/003-gpio_bit_setting.patch +++ /dev/null @@ -1,35 +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(-) - -diff --git a/arch/mips/rb532/gpio.c b/arch/mips/rb532/gpio.c -index 0e84c8a..e35cb75 100644 ---- a/arch/mips/rb532/gpio.c -+++ b/arch/mips/rb532/gpio.c -@@ -119,13 +119,11 @@ static inline void rb532_set_bit(unsigned bitval, - 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); --- -1.5.6.4 - - - |