Commit 43524309 authored by Patrick Mochel's avatar Patrick Mochel

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.
parent dc3099f2
......@@ -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 *);
......
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