bcm53xx: sprom: prepare to support other hosttype-s
Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 44463
This commit is contained in:
parent
29130d39e3
commit
4c98253648
1 changed files with 8 additions and 1 deletions
|
@ -673,7 +673,14 @@ static int bcm47xx_sprom_init(struct bcma_bus *bus, struct ssb_sprom *out)
|
||||||
if (!nvram_dev)
|
if (!nvram_dev)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
||||||
|
switch (bus->hosttype) {
|
||||||
|
case BCMA_HOSTTYPE_SOC:
|
||||||
fill.prefix = of_get_property(np, "prefix", NULL);
|
fill.prefix = of_get_property(np, "prefix", NULL);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
pr_err("Unable to fill SPROM for given hosttype.\n");
|
||||||
|
return -EINVAL;
|
||||||
|
}
|
||||||
|
|
||||||
fill.fallback = false;
|
fill.fallback = false;
|
||||||
fill.getenv = bcm47xx_sprom_getenv;
|
fill.getenv = bcm47xx_sprom_getenv;
|
||||||
|
|
Loading…
Reference in a new issue