TI DaVinci EMAC: delay DaVinci EMAC initialization

On TI's DA850/OMAP-L138 EVM, MAC address is stored in SPI
flash which is accessed using MTD interface.

This patch delays the initialization of DaVinci EMAC driver
by changing module_init to late_initcall. This helps SPI and
MTD drivers to get initialized before EMAC thereby enabling
EMAC driver to read the MAC address while booting and use it.

Tested with NFS on DM644x, DM6467, DA830/OMAP-L137 and
DA850/OMAP-L138 EVMs.

Signed-off-by: Sudhakar Rajashekhara <sudhakar.raj@ti.com>
Reviewed-by: Chaithrika U S <chaithrika@ti.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Rajashekhara, Sudhakar 2009-08-19 10:39:55 +00:00 коммит произвёл David S. Miller
Родитель 38edb5b87e
Коммит 2db9517ef3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -2817,7 +2817,7 @@ static int __init davinci_emac_init(void)
{
return platform_driver_register(&davinci_emac_driver);
}
module_init(davinci_emac_init);
late_initcall(davinci_emac_init);
/**
* davinci_emac_exit: EMAC driver module exit