summaryrefslogtreecommitdiffstats
path: root/include/asm-arm/device.h
diff options
context:
space:
mode:
authorRussell King <rmk@dyn-67.arm.linux.org.uk>2007-02-12 10:28:24 +0000
committerRussell King <rmk+kernel@arm.linux.org.uk>2007-02-12 10:28:24 +0000
commitab2c21529df6ee0f06787773882a1abc6bc2d665 (patch)
tree9ad875a78ea5122a8b0388dd8fe1d3e2c9e6d948 /include/asm-arm/device.h
parent44b18693904e65d840ae999ac8aa717551cf509f (diff)
[ARM] Add a reference from struct device to the dma bounce info
dmabounce keeps a per-device structure, and finds the correct structure by walking a list. Since architectures can now add fields to struct device, we can attach this structure direct to the struct device, thereby eliminating the code to search the list. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'include/asm-arm/device.h')
-rw-r--r--include/asm-arm/device.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/asm-arm/device.h b/include/asm-arm/device.h
index d8f9872b0e2..c61642b4060 100644
--- a/include/asm-arm/device.h
+++ b/include/asm-arm/device.h
@@ -3,5 +3,13 @@
*
* This file is released under the GPLv2
*/
-#include <asm-generic/device.h>
+#ifndef ASMARM_DEVICE_H
+#define ASMARM_DEVICE_H
+struct dev_archdata {
+#ifdef CONFIG_DMABOUNCE
+ struct dmabounce_device_info *dmabounce;
+#endif
+};
+
+#endif