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)
commit30cfb023019b347cdfd39bd5039d2118a1bd224a
tree37c511de8a04b0516909323d207e54cbc6498d34
parent49655bb8a51565f0375a4f783334c9de78134be5
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