summaryrefslogtreecommitdiff
path: root/arch/arm/mach-omap2
diff options
context:
space:
mode:
authorKevin Hilman <khilman@ti.com>2011-07-22 00:58:51 +0400
committerKevin Hilman <khilman@ti.com>2011-09-16 03:35:47 +0400
commitd66b3fe436a296f102e8944247972fc0c17ddf26 (patch)
treed1b15398c457f54380fb50ed3fb8d6756043cb0c /arch/arm/mach-omap2
parent9f8b6949d78f1306eef0edc14bc1fbcaf3e58ad0 (diff)
downloadlinux-d66b3fe436a296f102e8944247972fc0c17ddf26.tar.xz
OMAP: omap_device: decouple platform_device from omap_device
Rather than embedding a struct platform_device inside a struct omap_device, decouple them, leaving only a pointer to the platform_device inside the omap_device. Use the arch-specific data field of the platform_device (pdev_archdata) to add an omap_device pointer after the platform_device has been created. Signed-off-by: Kevin Hilman <khilman@ti.com>
Diffstat (limited to 'arch/arm/mach-omap2')
-rw-r--r--arch/arm/mach-omap2/opp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-omap2/opp.c b/arch/arm/mach-omap2/opp.c
index ab8b35b780b5..9262a6b47702 100644
--- a/arch/arm/mach-omap2/opp.c
+++ b/arch/arm/mach-omap2/opp.c
@@ -69,7 +69,7 @@ int __init omap_init_opp_table(struct omap_opp_def *opp_def,
opp_def->hwmod_name, i);
return -EINVAL;
}
- dev = &oh->od->pdev.dev;
+ dev = &oh->od->pdev->dev;
r = opp_add(dev, opp_def->freq, opp_def->u_volt);
if (r) {