diff options
author | Kevin Hilman <khilman@ti.com> | 2011-07-21 16:58:51 -0400 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 19:35:47 -0400 |
commit | d66b3fe436a296f102e8944247972fc0c17ddf26 (patch) | |
tree | d1b15398c457f54380fb50ed3fb8d6756043cb0c /arch/arm/mach-omap2 | |
parent | 9f8b6949d78f1306eef0edc14bc1fbcaf3e58ad0 (diff) |
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.c | 2 |
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, | |||
69 | opp_def->hwmod_name, i); | 69 | opp_def->hwmod_name, i); |
70 | return -EINVAL; | 70 | return -EINVAL; |
71 | } | 71 | } |
72 | dev = &oh->od->pdev.dev; | 72 | dev = &oh->od->pdev->dev; |
73 | 73 | ||
74 | r = opp_add(dev, opp_def->freq, opp_def->u_volt); | 74 | r = opp_add(dev, opp_def->freq, opp_def->u_volt); |
75 | if (r) { | 75 | if (r) { |