The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH] IRQ and resource for platform_device
@ 2003-05-15 13:59 Russell King
  2003-05-15 16:03 ` Matt Porter
  0 siblings, 1 reply; 7+ messages in thread
From: Russell King @ 2003-05-15 13:59 UTC (permalink / raw)
  To: Linux Kernel List; +Cc: Patrick Mochel

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.

Discussion point: is one resource and one irq enough?

--- orig/include/linux/device.h	Mon May  5 17:40:10 2003
+++ linux/include/linux/device.h	Wed May 14 15:35:40 2003
@@ -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 @@
 	char		* name;
 	u32		id;
 	struct device	dev;
+	struct resource	res;
+	unsigned int	irq;
 };
 
 extern int platform_device_register(struct platform_device *);

-- 
Russell King (rmk@arm.linux.org.uk)                The developer of ARM Linux
             http://www.arm.linux.org.uk/personal/aboutme.html


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2003-05-15 19:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-15 13:59 [PATCH] IRQ and resource for platform_device Russell King
2003-05-15 16:03 ` Matt Porter
2003-05-15 16:30   ` Russell King
2003-05-15 17:35     ` Matt Porter
2003-05-15 18:13       ` Russell King
2003-05-15 18:32         ` Matt Porter
2003-05-15 19:54           ` Patrick Mochel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox