From: Larry Finger Date: Sun, 13 Sep 2009 20:55:13 +0000 (-0500) Subject: ssb: Fix error when V1 SPROM extraction is forced X-Git-Tag: v2.6.32-rc1~27^2~11^2~39 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d45b90ddee58db8caa3b06c3709b73dd0444559c;p=karo-tx-linux.git ssb: Fix error when V1 SPROM extraction is forced When an SPROM revision is not recognized, the code falls back to a V1 SPROM; however, that revision is not forced in the appropriate structure. Signed-off-by: Larry Finger Signed-off-by: John W. Linville --- diff --git a/drivers/ssb/pci.c b/drivers/ssb/pci.c index f853d5600ca7..9e50896233aa 100644 --- a/drivers/ssb/pci.c +++ b/drivers/ssb/pci.c @@ -600,6 +600,7 @@ static int sprom_extract(struct ssb_bus *bus, struct ssb_sprom *out, ssb_printk(KERN_WARNING PFX "Unsupported SPROM" " revision %d detected. Will extract" " v1\n", out->revision); + out->revision = 1; sprom_extract_r123(out, in); } }