diff options
Diffstat (limited to 'arch/arm/mach-omap1/pm_bus.c')
| -rw-r--r-- | arch/arm/mach-omap1/pm_bus.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-omap1/pm_bus.c b/arch/arm/mach-omap1/pm_bus.c index 8b66392be745..6588c22b8a64 100644 --- a/arch/arm/mach-omap1/pm_bus.c +++ b/arch/arm/mach-omap1/pm_bus.c | |||
| @@ -48,7 +48,6 @@ static int omap1_pm_runtime_suspend(struct device *dev) | |||
| 48 | 48 | ||
| 49 | static int omap1_pm_runtime_resume(struct device *dev) | 49 | static int omap1_pm_runtime_resume(struct device *dev) |
| 50 | { | 50 | { |
| 51 | int ret = 0; | ||
| 52 | struct clk *iclk, *fclk; | 51 | struct clk *iclk, *fclk; |
| 53 | 52 | ||
| 54 | dev_dbg(dev, "%s\n", __func__); | 53 | dev_dbg(dev, "%s\n", __func__); |
| @@ -73,6 +72,9 @@ static int __init omap1_pm_runtime_init(void) | |||
| 73 | const struct dev_pm_ops *pm; | 72 | const struct dev_pm_ops *pm; |
| 74 | struct dev_pm_ops *omap_pm; | 73 | struct dev_pm_ops *omap_pm; |
| 75 | 74 | ||
| 75 | if (!cpu_class_is_omap1()) | ||
| 76 | return -ENODEV; | ||
| 77 | |||
| 76 | pm = platform_bus_get_pm_ops(); | 78 | pm = platform_bus_get_pm_ops(); |
| 77 | if (!pm) { | 79 | if (!pm) { |
| 78 | pr_err("%s: unable to get dev_pm_ops from platform_bus\n", | 80 | pr_err("%s: unable to get dev_pm_ops from platform_bus\n", |
