]> git.baikalelectronics.ru Git - kernel.git/commit
TI DaVinci EMAC: delay DaVinci EMAC initialization
authorRajashekhara, Sudhakar <sudhakar.raj@ti.com>
Wed, 19 Aug 2009 10:39:55 +0000 (10:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Aug 2009 07:19:33 +0000 (00:19 -0700)
commit841d6b594625a39217265fa6d027cd25fa31bc1d
tree0da6d1410b886af64b316ada27f2cd908e70df3a
parent9f672980702215aee81be8ac3f2abce95d9a9f95
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>
drivers/net/davinci_emac.c