Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 295709
b: refs/heads/master
c: 3ec2dec
h: refs/heads/master
i:
  295707: fd63c6d
v: v3
  • Loading branch information
Kevin Hilman committed Mar 5, 2012
1 parent 593dbbe commit bbe22a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 401606fd708885d28ce3c14a2a8fe612f8a6b50f
refs/heads/master: 3ec2decbb6dfcdbbb6e6a8ddf5adc7edbc429ed7
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-omap/include/plat/omap_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

#include <plat/omap_hwmod.h>

extern struct device omap_device_parent;
extern struct dev_pm_domain omap_device_pm_domain;

/* omap_device._state values */
#define OMAP_DEVICE_STATE_UNKNOWN 0
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/plat-omap/omap-pm-noop.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ int omap_pm_get_dev_context_loss_count(struct device *dev)
if (WARN_ON(!dev))
return -ENODEV;

if (dev->parent == &omap_device_parent) {
if (dev->pm_domain == &omap_device_pm_domain) {
count = omap_device_get_context_loss_count(pdev);
} else {
WARN_ONCE(off_mode_enabled, "omap_pm: using dummy context loss counter; device %s should be converted to omap_device",
Expand Down
12 changes: 2 additions & 10 deletions trunk/arch/arm/plat-omap/omap_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,8 +314,6 @@ static void _add_hwmod_clocks_clkdev(struct omap_device *od,
}


static struct dev_pm_domain omap_device_pm_domain;

/**
* omap_device_build_from_dt - build an omap_device with multiple hwmods
* @pdev_name: name of the platform_device driver to use
Expand Down Expand Up @@ -793,7 +791,7 @@ static int _od_resume_noirq(struct device *dev)
#define _od_resume_noirq NULL
#endif

static struct dev_pm_domain omap_device_pm_domain = {
struct dev_pm_domain omap_device_pm_domain = {
.ops = {
SET_RUNTIME_PM_OPS(_od_runtime_suspend, _od_runtime_resume,
_od_runtime_idle)
Expand All @@ -815,7 +813,6 @@ int omap_device_register(struct platform_device *pdev)
{
pr_debug("omap_device: %s: registering\n", pdev->name);

pdev->dev.parent = &omap_device_parent;
pdev->dev.pm_domain = &omap_device_pm_domain;
return platform_device_add(pdev);
}
Expand Down Expand Up @@ -1124,18 +1121,13 @@ int omap_device_enable_clocks(struct omap_device *od)
return 0;
}

struct device omap_device_parent = {
.init_name = "omap",
.parent = &platform_bus,
};

static struct notifier_block platform_nb = {
.notifier_call = _omap_device_notifier_call,
};

static int __init omap_device_init(void)
{
bus_register_notifier(&platform_bus_type, &platform_nb);
return device_register(&omap_device_parent);
return 0;
}
core_initcall(omap_device_init);

0 comments on commit bbe22a8

Please sign in to comment.