]> git.baikalelectronics.ru Git - kernel.git/commit
bcma: init sprom struct earlier
authorHauke Mehrtens <hauke@hauke-m.de>
Sat, 29 Sep 2012 18:29:50 +0000 (20:29 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 19 Oct 2012 19:52:21 +0000 (15:52 -0400)
commit6afcea778c6c60a42355b460060cbf923e2e7cf1
tree37c511de8a04b0516909323d207e54cbc6498d34
parent1ae39592604506e87b0c5539951151d5a5c83fac
bcma: init sprom struct earlier

The PCIe host driver and the chip common initialisation accesses the
sprom struct, but it is not initialized when these functions are run.
Move the sprom parsing up in to do it earlier.
As we need the chip common core rev and some other attributes from the
chip common core, the early initialization is done before accessing the
sprom.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/bcma/main.c