summaryrefslogtreecommitdiff
path: root/include/asm-blackfin/bitops.h
diff options
context:
space:
mode:
authorSimon Kagstrom <simon.kagstrom@netinsight.net>2009-08-24 09:09:50 +0200
committerWolfgang Denk <wd@denx.de>2009-09-15 22:31:24 +0200
commit02f99901ed1c9d828e3ea117f94ce2264bf8389e (patch)
tree1ce78481730fd40db796928a27f34bf5f885ef03 /include/asm-blackfin/bitops.h
parent557555fe0b82940ba7cc69f81d31d6ef4d4933b4 (diff)
downloadu-boot-imx-02f99901ed1c9d828e3ea117f94ce2264bf8389e.zip
u-boot-imx-02f99901ed1c9d828e3ea117f94ce2264bf8389e.tar.gz
u-boot-imx-02f99901ed1c9d828e3ea117f94ce2264bf8389e.tar.bz2
Move __set/clear_bit from ubifs.h to bitops.h
__set_bit and __clear_bit are defined in ubifs.h as well as in asm/include/bitops.h for some architectures. This patch moves the generic implementation to include/linux/bitops.h and uses that unless it's defined by the architecture. Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
Diffstat (limited to 'include/asm-blackfin/bitops.h')
-rw-r--r--include/asm-blackfin/bitops.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/asm-blackfin/bitops.h b/include/asm-blackfin/bitops.h
index 2e55b6a..cc3685d 100644
--- a/include/asm-blackfin/bitops.h
+++ b/include/asm-blackfin/bitops.h
@@ -79,6 +79,7 @@ static __inline__ void __set_bit(int nr, volatile void *addr)
mask = 1 << (nr & 0x1f);
*a |= mask;
}
+#define __set_bit
/*
* clear_bit() doesn't provide any barrier for the compiler.