]> 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)
commit6e84f79b04434f25f5f6a1e4dc8d59b48bedcab0
tree37c511de8a04b0516909323d207e54cbc6498d34
parent5e2bdf4ec549076b0e4f6987597e080bb306b353
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