diff options
author | Kevin Hilman <khilman@deeprootsystems.com> | 2009-12-08 18:34:22 -0500 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-11 19:00:44 -0500 |
commit | 5f1b6ef76ff87bb531a9304b36658b8ffaa91b08 (patch) | |
tree | 042bbbfb213024922a37a89a2a316de5d9b01221 /arch/arm/plat-omap | |
parent | a470c42cb89a5282f816b37a0d1eef68fe455f31 (diff) |
OMAP: omap_device: use UINT_MAX for default wakeup latency limit
The _dev_wakeup_lat_limit field of struct omap_device is u32, so use
UINT_MAX instead of INT_MAX for the default maximum.
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Diffstat (limited to 'arch/arm/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/omap_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index bb16e624a557..54fe0a2f0b24 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c | |||
@@ -459,7 +459,7 @@ int omap_device_enable(struct platform_device *pdev) | |||
459 | ret = _omap_device_activate(od, IGNORE_WAKEUP_LAT); | 459 | ret = _omap_device_activate(od, IGNORE_WAKEUP_LAT); |
460 | 460 | ||
461 | od->dev_wakeup_lat = 0; | 461 | od->dev_wakeup_lat = 0; |
462 | od->_dev_wakeup_lat_limit = INT_MAX; | 462 | od->_dev_wakeup_lat_limit = UINT_MAX; |
463 | od->_state = OMAP_DEVICE_STATE_ENABLED; | 463 | od->_state = OMAP_DEVICE_STATE_ENABLED; |
464 | 464 | ||
465 | return ret; | 465 | return ret; |