diff options
author | Kevin Hilman <khilman@ti.com> | 2011-07-21 13:58:51 -0700 |
---|---|---|
committer | Kevin Hilman <khilman@ti.com> | 2011-09-15 16:35:47 -0700 |
commit | d66b3fe436a296f102e8944247972fc0c17ddf26 (patch) | |
tree | d1b15398c457f54380fb50ed3fb8d6756043cb0c /arch/arm/mach-omap2/opp.c | |
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/opp.c')
-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, 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) { |