diff options
author | Markus Mayer <mmayer@broadcom.com> | 2019-10-15 15:45:07 -0700 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2019-10-18 10:07:19 -0700 |
commit | 56ece3fabf2e5dcc2d8ffd51c955a83ffda62723 (patch) | |
tree | 99649da957ee41793af2298a6d3534fec037ad0a | |
parent | abf94566bb512ba3a6e8ed4b6b03359ce67d98d7 (diff) | |
download | linux-56ece3fabf2e5dcc2d8ffd51c955a83ffda62723.tar.gz linux-56ece3fabf2e5dcc2d8ffd51c955a83ffda62723.tar.bz2 linux-56ece3fabf2e5dcc2d8ffd51c955a83ffda62723.zip |
memory: brcmstb: dpfe: initialize priv->dev
Add missing initialization of priv->dev. It is only used in an
emergency error message that is very unlikely to ever occur, which is
how this has remained unnoticed.
Signed-off-by: Markus Mayer <mmayer@broadcom.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
-rw-r--r-- | drivers/memory/brcmstb_dpfe.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/memory/brcmstb_dpfe.c b/drivers/memory/brcmstb_dpfe.c index 0c4c01d2bf48..2ef3e365c1b5 100644 --- a/drivers/memory/brcmstb_dpfe.c +++ b/drivers/memory/brcmstb_dpfe.c @@ -817,6 +817,8 @@ static int brcmstb_dpfe_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; + priv->dev = dev; + mutex_init(&priv->lock); platform_set_drvdata(pdev, priv); |