From: Russell King <rmk@arm.linux.org.uk>
To: Linux Kernel List <linux-kernel@vger.kernel.org>
Cc: Patrick Mochel <mochel@osdl.org>
Subject: [PATCH] IRQ and resource for platform_device
Date: Thu, 15 May 2003 14:59:20 +0100 [thread overview]
Message-ID: <20030515145920.B31491@flint.arm.linux.org.uk> (raw)
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
next reply other threads:[~2003-05-15 13:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-05-15 13:59 Russell King [this message]
2003-05-15 16:03 ` [PATCH] IRQ and resource for platform_device 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030515145920.B31491@flint.arm.linux.org.uk \
--to=rmk@arm.linux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mochel@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.