From eadea0d7bda93fec0e2c7a3b675fc6ab21cdfe61 Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Tue, 22 Dec 2009 16:11:27 +0100 Subject: [PATCH 1/2] glamo-drm: use dev_set_drvdata instead of setting driver_data directly * driver_data is private since 2.6.32 http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b4028437876866aba4747a655ede00f892089e14 Signed-off-by: Martin Jansa --- drivers/mfd/glamo/glamo-drm-drv.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/mfd/glamo/glamo-drm-drv.c b/drivers/mfd/glamo/glamo-drm-drv.c index 81215f4..4352091 100644 --- a/drivers/mfd/glamo/glamo-drm-drv.c +++ b/drivers/mfd/glamo/glamo-drm-drv.c @@ -355,7 +355,7 @@ out_release_regs: release_mem_region(gdrm->reg->start, resource_size(gdrm->reg)); out_free: kfree(gdrm); - pdev->dev.driver_data = NULL; + dev_set_drvdata(&pdev->dev, NULL); return rc; } -- 1.6.6.rc4