diff options
author | Markus Mayer <mmayer@broadcom.com> | 2019-10-16 00:45:07 +0200 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2019-10-18 19:07:19 +0200 |
commit | 56ece3fabf2e5dcc2d8ffd51c955a83ffda62723 (patch) | |
tree | 99649da957ee41793af2298a6d3534fec037ad0a /drivers/memory/brcmstb_dpfe.c | |
parent | memory: brcmstb: dpfe: rename struct private_data (diff) | |
download | linux-56ece3fabf2e5dcc2d8ffd51c955a83ffda62723.tar.xz 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>
Diffstat (limited to 'drivers/memory/brcmstb_dpfe.c')
-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); |