Commit f7cd8678 authored by Patrick Mochel's avatar Patrick Mochel

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.
parent 8a9af19f
...@@ -389,8 +389,8 @@ struct platform_device { ...@@ -389,8 +389,8 @@ struct platform_device {
char * name; char * name;
u32 id; u32 id;
struct device dev; struct device dev;
struct resource res; u32 num_resources;
unsigned int irq; struct resource * resource;
}; };
extern int platform_device_register(struct platform_device *); extern int platform_device_register(struct platform_device *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment