mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
bcma: extract SPROM rev 9 the same way as rev 8
SPROM rev 9 was discovered on 14e4:4331, it seems to have very similar layout to rev 8 one. Use the same extracting function until we find some differences. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
18dfa4952c
commit
c54dcd197c
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ static int bcma_sprom_valid(const u16 *sprom)
|
||||||
return err;
|
return err;
|
||||||
|
|
||||||
revision = sprom[SSB_SPROMSIZE_WORDS_R4 - 1] & SSB_SPROM_REVISION_REV;
|
revision = sprom[SSB_SPROMSIZE_WORDS_R4 - 1] & SSB_SPROM_REVISION_REV;
|
||||||
if (revision != 8) {
|
if (revision != 8 && revision != 9) {
|
||||||
pr_err("Unsupported SPROM revision: %d\n", revision);
|
pr_err("Unsupported SPROM revision: %d\n", revision);
|
||||||
return -ENOENT;
|
return -ENOENT;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue