Skip to content

Commit

Permalink
OMAP: omap_device: use UINT_MAX for default wakeup latency limit
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kevin Hilman authored and paul committed Dec 12, 2009
1 parent a470c42 commit 5f1b6ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/plat-omap/omap_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5f1b6ef

Please sign in to comment.