diff options
| author | Patrick Mochel <mochel@osdl.org> | 2003-05-14 18:39:47 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2003-05-14 18:39:47 -0700 |
| commit | 4352430976a0b40351483cd8d3a2091dde8d9582 (patch) | |
| tree | 17b3a4aca181e31f5987a66b338f0e4d32860d1c /include | |
| parent | dc3099f2f8f54b69d0ff41c66a266a582f9fbdc1 (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')
| -rw-r--r-- | include/linux/device.h | 3 |
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 *); |
