[patch 01/14] mtd: Flex-OneNAND support
Artem Bityutskiy
dedekind at infradead.org
Fri Jun 12 08:03:29 EDT 2009
On Fri, 2009-06-12 at 17:27 +0530, Amul Saha wrote:
> Hi Artem,
>
> >> +#ifdef MODULE
> >> + flexonenand_setup(flex_bdry_info);
> >> +#endif
> >
> > Why do you need this ifdef? What is the fundamental difference between
> > onenand.ko as a module and onenand compiled-in?
> >
>
> flexonenand_setup( ) need not be called, when OneNAND is built-in.
> This function-call will cause overhead unwantedly on every boot, during OneNAND scan.
>
> flexonenand_setup( ) call is needed only when it has been built as a module.
Why?
--
Best regards,
Artem Bityutskiy (Битюцкий Артём)
More information about the linux-mtd
mailing list