From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Wed, 07 Dec 2011 23:49:18 +0100 Subject: [PATCH v4 3/6] ARM: vexpress: Add DT support for the motherboard In-Reply-To: <1323186229-22054-4-git-send-email-pawel.moll@arm.com> References: <1323186229-22054-1-git-send-email-pawel.moll@arm.com> <1323186229-22054-4-git-send-email-pawel.moll@arm.com> Message-ID: <47277884.EQ6QaTZjNt@wuerfel> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Tuesday 06 December 2011 15:43:46 Pawel Moll wrote: > + > +static struct of_dev_auxdata v2m_dt_auxdata_lookup[] __initdata = { > + OF_DEV_AUXDATA("arm,vexpress-flash", V2M_NOR0, "physmap-flash", > + &v2m_flash_data), > + OF_DEV_AUXDATA("arm,primecell", V2M_MMCI, "mb:mmci", &v2m_mmci_data), > + {} > +}; > One more thing I noticed. While I'm not familiar with the progress on device driver conversion, I think you should be using the physmap_of driver instead of physmap, which will remove the need for the platform data. For mmci, it should not be hard to do change the driver so it understands the device tree, too. The easiest implementation for that would be to add some code into mmci_probe and allocate an mmci_platform_data structure that gets filled with the required attributes. Arnd