[PATCH] mtd: mxc_nand: Select the driver via ARCH_MXC

Uwe Kleine-König u.kleine-koenig at pengutronix.de
Tue Jul 3 03:03:00 EDT 2012


Hello Fabio,

On Mon, Jul 02, 2012 at 07:00:19PM -0300, Fabio Estevam wrote:
> From: Fabio Estevam <fabio.estevam at freescale.com>
> 
> With device tree support in place, we should not use IMX_HAVE_PLATFORM_MXC_NAND
> as a dependency for selecting the mxc_nand driver.
> 
> Use ARCH_MXC symbol instead, so that the driver can be even selected when a single device-tree
> machine is selected.
the obvious alternative is to select IMX_HAVE_PLATFORM_MXC_NAND for the
dt-based machines, too.

Or make it:

	depends on IMX_HAVE_PLATFORM_MXC_NAND || DT || COMPILE_COVERAGE

(COMPILE_COVERAGE doesn't exist AFAIK, but IMHO it's sensible to
introduce it.)

Best regards
Uwe


-- 
Pengutronix e.K.                           | Uwe Kleine-König            |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |



More information about the linux-mtd mailing list