aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDave Martin <dave.martin@linaro.org>2011-10-05 09:40:59 -0400
committerDave Martin <dave.martin@linaro.org>2011-11-22 05:58:30 -0500
commit1e5f9a23430e64fb56d9d5d8e1ca165ba1cfeb75 (patch)
tree5dc5ea5d1895b063a911f1101a906da696b59f53 /include
parentcfcfc9eca2bcbd26a8e206baeb005b055dbf8e37 (diff)
ARM: amba: Move definition of struct amba_id to mod_devicetable.h
The general kernel infrastructure for adding module alises during module post processing expects the affected device type identification structures in a common header <linux/mod_devicetable.h>. This patch simple moves struct amba_id to the common header, and adds the appropriate include in <linux/amba/bus.h>. Signed-off-by: Dave Martin <dave.martin@linaro.org>
Diffstat (limited to 'include')
-rw-r--r--include/linux/amba/bus.h7
-rw-r--r--include/linux/mod_devicetable.h18
2 files changed, 19 insertions, 6 deletions
diff --git a/include/linux/amba/bus.h b/include/linux/amba/bus.h
index fcbbe71a3cc1..724c69c40bb8 100644
--- a/include/linux/amba/bus.h
+++ b/include/linux/amba/bus.h
@@ -16,6 +16,7 @@
16 16
17#include <linux/clk.h> 17#include <linux/clk.h>
18#include <linux/device.h> 18#include <linux/device.h>
19#include <linux/mod_devicetable.h>
19#include <linux/err.h> 20#include <linux/err.h>
20#include <linux/resource.h> 21#include <linux/resource.h>
21#include <linux/regulator/consumer.h> 22#include <linux/regulator/consumer.h>
@@ -35,12 +36,6 @@ struct amba_device {
35 unsigned int irq[AMBA_NR_IRQS]; 36 unsigned int irq[AMBA_NR_IRQS];
36}; 37};
37 38
38struct amba_id {
39 unsigned int id;
40 unsigned int mask;
41 void *data;
42};
43
44struct amba_driver { 39struct amba_driver {
45 struct device_driver drv; 40 struct device_driver drv;
46 int (*probe)(struct amba_device *, const struct amba_id *); 41 int (*probe)(struct amba_device *, const struct amba_id *);
diff --git a/include/linux/mod_devicetable.h b/include/linux/mod_devicetable.h
index 468819cdde87..83ac0713ed0a 100644
--- a/include/linux/mod_devicetable.h
+++ b/include/linux/mod_devicetable.h
@@ -542,4 +542,22 @@ struct isapnp_device_id {
542 kernel_ulong_t driver_data; /* data private to the driver */ 542 kernel_ulong_t driver_data; /* data private to the driver */
543}; 543};
544 544
545/**
546 * struct amba_id - identifies a device on an AMBA bus
547 * @id: The significant bits if the hardware device ID
548 * @mask: Bitmask specifying which bits of the id field are significant when
549 * matching. A driver binds to a device when ((hardware device ID) & mask)
550 * == id.
551 * @data: Private data used by the driver.
552 */
553struct amba_id {
554 unsigned int id;
555 unsigned int mask;
556#ifndef __KERNEL__
557 kernel_ulong_t data;
558#else
559 void *data;
560#endif
561};
562
545#endif /* LINUX_MOD_DEVICETABLE_H */ 563#endif /* LINUX_MOD_DEVICETABLE_H */