OMAP: omap_device: use UINT_MAX for default wakeup latency limit
authorKevin Hilman <khilman@deeprootsystems.com>
Tue, 8 Dec 2009 23:34:22 +0000 (16:34 -0700)
committerpaul <paul@twilight.(none)>
Sat, 12 Dec 2009 00:00:44 +0000 (17:00 -0700)
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>
arch/arm/plat-omap/omap_device.c

index bb16e624a557aabbeea7ee8d952b490acbea2678..54fe0a2f0b24f796f84981537a6dafcbe87500dd 100644 (file)
@@ -459,7 +459,7 @@ int omap_device_enable(struct platform_device *pdev)
        ret = _omap_device_activate(od, IGNORE_WAKEUP_LAT);
 
        od->dev_wakeup_lat = 0;
-       od->_dev_wakeup_lat_limit = INT_MAX;
+       od->_dev_wakeup_lat_limit = UINT_MAX;
        od->_state = OMAP_DEVICE_STATE_ENABLED;
 
        return ret;