[PATCH RESEND 2/2] mtd: bcm47: convert to module_platform_driver instead of init/exit

Hauke Mehrtens hauke at hauke-m.de
Thu May 30 06:55:34 EDT 2013


On 05/30/2013 12:30 PM, Andy Shevchenko wrote:
> On Thu, May 30, 2013 at 5:22 AM, Libo Chen <clbchenlibo.chen at huawei.com> wrote:
>>
>> convert to module_platform_driver instead of init/exit
> 
> I give another thought about it. We have to be sure that the flash
> device will be online when it's really needed.
> module_init initcall is quite far in the boot process. Is it what we want?

This is no problem, the flash driver is needed when the root file system
is mounted. The arch code reads the SoC configuration values in its own
code in arch/mips/bcm47xx/nvram.c without using the mtd subsystem. These
values are needed very early in the boot process.

Hauke



More information about the linux-mtd mailing list