[PATCHv2 3/7] nandsim: Define CONFIG_NANDSIM_MAX_PARTS and use it instead of MAX_MTD_DEVICES
Artem Bityutskiy
dedekind1 at gmail.com
Thu Jan 28 11:13:02 EST 2010
On Tue, 2010-01-12 at 23:08 +0000, Ben Hutchings wrote:
> MAX_MTD_DEVICES is about to be removed.
>
> Signed-off-by: Ben Hutchings <bhutchings at solarflare.com>
> ---
> drivers/mtd/nand/nandsim.c | 7 +++++--
> 1 files changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/mtd/nand/nandsim.c b/drivers/mtd/nand/nandsim.c
> index 7281000..58c255e 100644
> --- a/drivers/mtd/nand/nandsim.c
> +++ b/drivers/mtd/nand/nandsim.c
> @@ -80,6 +80,9 @@
> #ifndef CONFIG_NANDSIM_DBG
> #define CONFIG_NANDSIM_DBG 0
> #endif
> +#ifndef CONFIG_NANDSIM_MAX_PARTS
> +#define CONFIG_NANDSIM_MAX_PARTS 32
> +#endif
Since this is not a Kconfig option, please, remove the CONFIG_ prefix.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list