summaryrefslogtreecommitdiff
path: root/target/linux/bcm53xx/files/drivers/misc/bcm47xx-sprom.c
diff options
context:
space:
mode:
authorRafał Miłecki <zajec5@gmail.com>2014-12-10 19:56:56 +0000
committerRafał Miłecki <zajec5@gmail.com>2014-12-10 19:56:56 +0000
commitb0b43e1ef963e7b4f87bd8942fec30def9731a17 (patch)
tree891aa8cd2f0a373024275bb39b774a1dcc5aeb2b /target/linux/bcm53xx/files/drivers/misc/bcm47xx-sprom.c
parenta1da38f7b16914bd0ccfabcc4f15bb4ca6799abf (diff)
downloadmtk-20170518-b0b43e1ef963e7b4f87bd8942fec30def9731a17.zip
mtk-20170518-b0b43e1ef963e7b4f87bd8942fec30def9731a17.tar.gz
mtk-20170518-b0b43e1ef963e7b4f87bd8942fec30def9731a17.tar.bz2
bcm53xx: use static NVRAM pointer for now
This will allow us to sync with code sent for upstream. Signed-off-by: Rafał Miłecki <zajec5@gmail.com> SVN-Revision: 43608
Diffstat (limited to 'target/linux/bcm53xx/files/drivers/misc/bcm47xx-sprom.c')
-rw-r--r--target/linux/bcm53xx/files/drivers/misc/bcm47xx-sprom.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/target/linux/bcm53xx/files/drivers/misc/bcm47xx-sprom.c b/target/linux/bcm53xx/files/drivers/misc/bcm47xx-sprom.c
index 4e56208..e36abc8 100644
--- a/target/linux/bcm53xx/files/drivers/misc/bcm47xx-sprom.c
+++ b/target/linux/bcm53xx/files/drivers/misc/bcm47xx-sprom.c
@@ -637,9 +637,7 @@ static void bcm47xx_sprom_fill(struct ssb_sprom *sprom,
static int bcm47xx_sprom_getenv(const struct bcm47xx_sprom_fill *fill,
const char *name, char *val, size_t val_len)
{
- const struct platform_device *nvram_dev = fill->priv;
-
- return bcm47xx_nvram_getenv(&nvram_dev->dev, name, val, val_len);
+ return bcm47xx_nvram_getenv(name, val, val_len);
};
static int bcm47xx_sprom_probe(struct platform_device *pdev)