summaryrefslogtreecommitdiff
path: root/include/linux/device.h
diff options
context:
space:
mode:
authorPatrick Mochel <mochel@osdl.org>2003-05-15 00:55:16 -0700
committerPatrick Mochel <mochel@osdl.org>2003-05-15 00:55:16 -0700
commitf7cd86781d4c363fe07a2940de09669210c4da0c (patch)
treede2c85b9a9e4f3057b0316d3d5c40070f2509b7b /include/linux/device.h
parent8a9af19ff3b8c8a5884656c2679f7984fd49db63 (diff)
driver model: Modify resource representation in struct platform_device.
This way, we can easily handle devices that contain an arbitrary number of resources reported by the platform.
Diffstat (limited to 'include/linux/device.h')
-rw-r--r--include/linux/device.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/device.h b/include/linux/device.h
index 4c0c364aabc6..4f103f853a05 100644
--- a/include/linux/device.h
+++ b/include/linux/device.h
@@ -389,8 +389,8 @@ struct platform_device {
char * name;
u32 id;
struct device dev;
- struct resource res;
- unsigned int irq;
+ u32 num_resources;
+ struct resource * resource;
};
extern int platform_device_register(struct platform_device *);