From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: powerpc_flash_init(), wtf!? From: Benjamin Herrenschmidt To: Sergei Shtylyov In-Reply-To: <4639CF44.6020608@ru.mvista.com> References: <20070501051804.GB3881@localhost.localdomain> <20070503103534.63ff67b6@localhost.localdomain> <20070503070358.GA9430@localhost.localdomain> <4639CF44.6020608@ru.mvista.com> Content-Type: text/plain Date: Thu, 03 May 2007 22:29:13 +1000 Message-Id: <1178195353.6353.38.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, David Gibson List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > It doesn't seem a flexible enough approach. We could continue using > platform devices then. The problem is trivial enough tho... who ends up creating an of_platform_device for that rom node ... to be picked up by the driver. Creating of_platform devices is platform code responsibility... either by calling of_platform_bus_probe() (or whatever I called it ...) to generate them from known bus type or by creating them directly, that doesn't matter, that's still platform code business. Ben.