2.6.35 does not include usleep_range(). Revert to msleep();
Signed-off-by: Eric Lighthart <[email protected]> --- drivers/misc/apds990x.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/apds990x.c b/drivers/misc/apds990x.c index 200311f..4bc519c 100644 --- a/drivers/misc/apds990x.c +++ b/drivers/misc/apds990x.c @@ -616,7 +616,7 @@ static int apds990x_chip_on(struct apds990x_chip *chip) if (err < 0) return err; - usleep_range(APDS_STARTUP_DELAY, 2 * APDS_STARTUP_DELAY); + msleep(APDS_STARTUP_DELAY / 1000 + ((APDS_STARTUP_DELAY % 1000) ? 1 : 0)); /* Refresh all configs in case of regulators were off */ chip->prox_data = 0; @@ -1122,7 +1122,7 @@ static int __devinit apds990x_probe(struct i2c_client *client, goto fail2; } - usleep_range(APDS_STARTUP_DELAY, 2 * APDS_STARTUP_DELAY); + msleep(APDS_STARTUP_DELAY / 1000 + ((APDS_STARTUP_DELAY % 1000) ? 1 : 0)); err = apds990x_detect(chip); if (err < 0) { -- 1.7.2.1 _______________________________________________ MeeGo-kernel mailing list [email protected] http://lists.meego.com/listinfo/meego-kernel
