summaryrefslogtreecommitdiffstats
path: root/drivers/memory/brcmstb_dpfe.c
diff options
context:
space:
mode:
authorMarkus Mayer <mmayer@broadcom.com>2019-10-16 00:45:07 +0200
committerFlorian Fainelli <f.fainelli@gmail.com>2019-10-18 19:07:19 +0200
commit56ece3fabf2e5dcc2d8ffd51c955a83ffda62723 (patch)
tree99649da957ee41793af2298a6d3534fec037ad0a /drivers/memory/brcmstb_dpfe.c
parentmemory: brcmstb: dpfe: rename struct private_data (diff)
downloadlinux-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.c2
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);