aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/davinci_emac.c
diff options
context:
space:
mode:
authorRajashekhara, Sudhakar <sudhakar.raj@ti.com>2009-08-19 06:39:55 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-29 03:19:33 -0400
commit2db9517ef3dd48790c02a531e2b0db1957afd891 (patch)
tree0da6d1410b886af64b316ada27f2cd908e70df3a /drivers/net/davinci_emac.c
parent38edb5b87ea26314cb6ad4524c3f3b0fea0e33de (diff)
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>
Diffstat (limited to 'drivers/net/davinci_emac.c')
-rw-r--r--drivers/net/davinci_emac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/davinci_emac.c b/drivers/net/davinci_emac.c
index 12fd446f9895..5e6652b8728d 100644
--- a/drivers/net/davinci_emac.c
+++ b/drivers/net/davinci_emac.c
@@ -2817,7 +2817,7 @@ static int __init davinci_emac_init(void)
2817{ 2817{
2818 return platform_driver_register(&davinci_emac_driver); 2818 return platform_driver_register(&davinci_emac_driver);
2819} 2819}
2820module_init(davinci_emac_init); 2820late_initcall(davinci_emac_init);
2821 2821
2822/** 2822/**
2823 * davinci_emac_exit: EMAC driver module exit 2823 * davinci_emac_exit: EMAC driver module exit