summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-05-14 18:39:47 -0700
committerPatrick Mochel <mochel@osdl.org>2003-05-14 18:39:47 -0700
commit4352430976a0b40351483cd8d3a2091dde8d9582 (patch)
tree17b3a4aca181e31f5987a66b338f0e4d32860d1c /include/linux/device.h
parentdc3099f2f8f54b69d0ff41c66a266a582f9fbdc1 (diff)
driver model: Add resources to struct platform_device.
From Russell King: The location and interrupt of some platform devices are only known by platform specific code. In order to avoid putting platform specific parameters into drivers, place resource and irq members into struct platform_device.
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index aa01d65e4576..4c0c364aabc6 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -29,6 +29,7 @@
#include <linux/list.h>
#include <linux/spinlock.h>
#include <linux/types.h>
+#include <linux/ioport.h>
#include <asm/semaphore.h>
#include <asm/atomic.h>
@@ -388,6 +389,8 @@ struct platform_device {
char * name;
u32 id;
struct device dev;
+ struct resource res;
+ unsigned int irq;
};
extern int platform_device_register(struct platform_device *);