diff mbox series

[2/8] memory: brcmstb: dpfe: initialize priv->dev

Message ID 20191015224513.16969-3-mmayer@broadcom.com (mailing list archive)
State Mainlined
Commit 56ece3fabf2e5dcc2d8ffd51c955a83ffda62723
Headers show
Series memory: brcmstb: dpfe: introduce DPFE API v2.5 | expand

Commit Message

Markus Mayer Oct. 15, 2019, 10:45 p.m. UTC
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>
---
 drivers/memory/brcmstb_dpfe.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

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);