Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272585
b: refs/heads/master
c: 9f8b694
h: refs/heads/master
i:
  272583: c9289ba
v: v3
  • Loading branch information
Kevin Hilman committed Sep 15, 2011
1 parent 4fde4c3 commit 6574307
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 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: bfae4f8ffa8249c7cdd1483320cf1adc0ec954ff
refs/heads/master: 9f8b6949d78f1306eef0edc14bc1fbcaf3e58ad0
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ static int omap2_gpio_dev_init(struct omap_hwmod *oh, void *unused)
return PTR_ERR(pdev);
}

omap_device_disable_idle_on_suspend(od);
omap_device_disable_idle_on_suspend(pdev);

gpio_bank_count++;
return 0;
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata)
WARN(IS_ERR(pdev), "Could not build omap_device for %s: %s.\n",
name, oh->name);

omap_device_disable_idle_on_suspend(od);
omap_device_disable_idle_on_suspend(pdev);
oh->mux = omap_hwmod_mux_init(bdata->pads, bdata->pads_cnt);

uart->irq = oh->mpu_irqs[0].irq;
Expand Down
13 changes: 8 additions & 5 deletions trunk/arch/arm/plat-omap/include/plat/omap_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,6 @@ int omap_device_enable_hwmods(struct omap_device *od);
int omap_device_disable_clocks(struct omap_device *od);
int omap_device_enable_clocks(struct omap_device *od);

static inline void omap_device_disable_idle_on_suspend(struct omap_device *od)
{
od->flags |= OMAP_DEVICE_NO_IDLE_ON_SUSPEND;
}

/*
* Entries should be kept in latency order ascending
*
Expand Down Expand Up @@ -153,4 +148,12 @@ struct omap_device_pm_latency {
/* Get omap_device pointer from platform_device pointer */
#define to_omap_device(x) container_of((x), struct omap_device, pdev)

static inline
void omap_device_disable_idle_on_suspend(struct platform_device *pdev)
{
struct omap_device *od = to_omap_device(pdev);

od->flags |= OMAP_DEVICE_NO_IDLE_ON_SUSPEND;
}

#endif

0 comments on commit 6574307

Please sign in to comment.