aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-06-30 17:59:52 +0100
committerThomas White <taw@bitwiz.org.uk>2009-06-30 17:59:52 +0100
commitdc0edb9b1067238feb88e0fb95ca7cd6db812381 (patch)
tree4c00bd761e7df681da48fd300ec6c63cfab12d98
parent32babb5ddf8c7ca02bd8e64482c2a5d9eb727724 (diff)
Set gdrm->dev
This was uninitialised before. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
-rw-r--r--drivers/mfd/glamo/glamo-drm-drv.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-drm-drv.c b/drivers/mfd/glamo/glamo-drm-drv.c
index b389325235c..2421f104035 100644
--- a/drivers/mfd/glamo/glamo-drm-drv.c
+++ b/drivers/mfd/glamo/glamo-drm-drv.c
@@ -206,6 +206,7 @@ static int glamodrm_probe(struct platform_device *pdev)
return -ENOMEM;
platform_set_drvdata(pdev, gdrm);
gdrm->glamo_core = pdev->dev.platform_data;
+ gdrm->dev = &pdev->dev;
/* Find the command queue registers */
gdrm->reg = platform_get_resource(pdev, IORESOURCE_MEM, 0);