Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S264021AbTEONqg (ORCPT ); Thu, 15 May 2003 09:46:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S264025AbTEONqg (ORCPT ); Thu, 15 May 2003 09:46:36 -0400 Received: from caramon.arm.linux.org.uk ([212.18.232.186]:25350 "EHLO caramon.arm.linux.org.uk") by vger.kernel.org with ESMTP id S264021AbTEONqe (ORCPT ); Thu, 15 May 2003 09:46:34 -0400 Date: Thu, 15 May 2003 14:59:20 +0100 From: Russell King To: Linux Kernel List Cc: Patrick Mochel Subject: [PATCH] IRQ and resource for platform_device Message-ID: <20030515145920.B31491@flint.arm.linux.org.uk> Mail-Followup-To: Linux Kernel List , Patrick Mochel Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Message-Flag: Your copy of Microsoft Outlook is vulnerable to viruses. See www.mutt.org for more details. Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1147 Lines: 36 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 #include #include +#include #include #include @@ -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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/