aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-core.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-03-23 10:07:22 +0000
committerThomas White <taw@bitwiz.org.uk>2009-03-26 21:34:11 +0000
commitdf25b3d3af01a1259d0b76bb36503eec56af7118 (patch)
treee7041f921fb4dc0f9bc3afcc4127951e79d68e92 /drivers/mfd/glamo/glamo-core.c
parentdf9b97848707b402f9c953d4c31c74d30f03d783 (diff)
Pass core Glamo device to DRM module
This adds a missing statement to let glamo-drm.c know the core Glamo handle, so it can manipulate registers such as the 2D and 3D clocks. Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'drivers/mfd/glamo/glamo-core.c')
-rw-r--r--drivers/mfd/glamo/glamo-core.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-core.c b/drivers/mfd/glamo/glamo-core.c
index dff7c6c3551..5a8fda2404c 100644
--- a/drivers/mfd/glamo/glamo-core.c
+++ b/drivers/mfd/glamo/glamo-core.c
@@ -1240,7 +1240,11 @@ static int __init glamo_probe(struct platform_device *pdev)
glamo->pdata->glamo_irq_is_wired;
/* start creating the siblings */
+ glamo->pdata->glamo = glamo;
+
+ /* Command queue device (for DRM) */
glamo_cmdq_dev.dev.parent = &pdev->dev;
+ glamo_cmdq_dev.dev.platform_data = glamo;
mangle_mem_resources(glamo_cmdq_dev.resource,
glamo_cmdq_dev.num_resources, glamo->mem);
platform_device_register(&glamo_cmdq_dev);