From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from sunset.davemloft.net (74-93-104-97-Washington.hfc.comcastbusiness.net [74.93.104.97]) by ozlabs.org (Postfix) with ESMTP id BE850100818 for ; Thu, 22 Jul 2010 15:28:12 +1000 (EST) Date: Wed, 21 Jul 2010 22:28:28 -0700 (PDT) Message-Id: <20100721.222828.116132078.davem@davemloft.net> To: grant.likely@secretlab.ca Subject: Re: [PATCH 2/5] of: Merge of_platform_bus_type with platform_bus_type From: David Miller In-Reply-To: <20100721233959.7782.17711.stgit@angua> References: <20100721232817.7782.23410.stgit@angua> <20100721233959.7782.17711.stgit@angua> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Cc: sfr@canb.auug.org.au, monstr@monstr.eu, gregkh@suse.de, linux-kernel@vger.kernel.org, linuxppc-dev@ozlabs.org, microblaze-uclinux@itee.uq.edu.au, sparclinux@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Grant Likely Date: Wed, 21 Jul 2010 17:40:00 -0600 > of_platform_bus was being used in the same manner as the platform_bus. > The only difference being that of_platform_bus devices are generated > from data in the device tree, and platform_bus devices are usually > statically allocated in platform code. Having them separate causes > the problem of device drivers having to be registered twice if it > was possible for the same device to appear on either bus. > > This patch removes of_platform_bus_type and registers all of_platform > bus devices and drivers on the platform bus instead. A previous patch > made the of_device structure an alias for the platform_device structure, > and a shim is used to adapt of_platform_drivers to the platform bus. > > After all of of_platform_bus drivers are converted to be normal platform > drivers, the shim code can be removed. > > Signed-off-by: Grant Likely Acked-by: David S. Miller