Kalle Valo says:
[linux-2.6-block.git] / drivers / bcma / sprom.c
index 3da01f173c63745a2fab261b5e1d6a08fb01fd3a..e668ad7963fc258476e21367acfc7da3f920deee 100644 (file)
@@ -165,7 +165,7 @@ static int bcma_sprom_valid(struct bcma_bus *bus, const u16 *sprom,
                return err;
 
        revision = sprom[words - 1] & SSB_SPROM_REVISION_REV;
-       if (revision != 8 && revision != 9 && revision != 10) {
+       if (revision < 8 || revision > 11) {
                pr_err("Unsupported SPROM revision: %d\n", revision);
                return -ENOENT;
        }