diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/hpet.c | 2 | ||||
-rw-r--r-- | drivers/clocksource/acpi_pm.c | 10 | ||||
-rw-r--r-- | drivers/input/touchscreen/ads7846.c | 4 |
3 files changed, 8 insertions, 8 deletions
diff --git a/drivers/char/hpet.c b/drivers/char/hpet.c index 53fdc7ff3870..32b8bbf5003e 100644 --- a/drivers/char/hpet.c +++ b/drivers/char/hpet.c | |||
@@ -46,7 +46,7 @@ | |||
46 | /* | 46 | /* |
47 | * The High Precision Event Timer driver. | 47 | * The High Precision Event Timer driver. |
48 | * This driver is closely modelled after the rtc.c driver. | 48 | * This driver is closely modelled after the rtc.c driver. |
49 | * http://www.intel.com/hardwaredesign/hpetspec.htm | 49 | * http://www.intel.com/hardwaredesign/hpetspec_1.pdf |
50 | */ | 50 | */ |
51 | #define HPET_USER_FREQ (64) | 51 | #define HPET_USER_FREQ (64) |
52 | #define HPET_DRIFT (500) | 52 | #define HPET_DRIFT (500) |
diff --git a/drivers/clocksource/acpi_pm.c b/drivers/clocksource/acpi_pm.c index c20171078d1d..e1129fad96dd 100644 --- a/drivers/clocksource/acpi_pm.c +++ b/drivers/clocksource/acpi_pm.c | |||
@@ -57,11 +57,6 @@ u32 acpi_pm_read_verified(void) | |||
57 | return v2; | 57 | return v2; |
58 | } | 58 | } |
59 | 59 | ||
60 | static cycle_t acpi_pm_read_slow(void) | ||
61 | { | ||
62 | return (cycle_t)acpi_pm_read_verified(); | ||
63 | } | ||
64 | |||
65 | static cycle_t acpi_pm_read(void) | 60 | static cycle_t acpi_pm_read(void) |
66 | { | 61 | { |
67 | return (cycle_t)read_pmtmr(); | 62 | return (cycle_t)read_pmtmr(); |
@@ -88,6 +83,11 @@ static int __init acpi_pm_good_setup(char *__str) | |||
88 | } | 83 | } |
89 | __setup("acpi_pm_good", acpi_pm_good_setup); | 84 | __setup("acpi_pm_good", acpi_pm_good_setup); |
90 | 85 | ||
86 | static cycle_t acpi_pm_read_slow(void) | ||
87 | { | ||
88 | return (cycle_t)acpi_pm_read_verified(); | ||
89 | } | ||
90 | |||
91 | static inline void acpi_pm_need_workaround(void) | 91 | static inline void acpi_pm_need_workaround(void) |
92 | { | 92 | { |
93 | clocksource_acpi_pm.read = acpi_pm_read_slow; | 93 | clocksource_acpi_pm.read = acpi_pm_read_slow; |
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index b9b7fc6ff1eb..e1ece89fe922 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
@@ -697,7 +697,7 @@ static enum hrtimer_restart ads7846_timer(struct hrtimer *handle) | |||
697 | struct ads7846 *ts = container_of(handle, struct ads7846, timer); | 697 | struct ads7846 *ts = container_of(handle, struct ads7846, timer); |
698 | int status = 0; | 698 | int status = 0; |
699 | 699 | ||
700 | spin_lock_irq(&ts->lock); | 700 | spin_lock(&ts->lock); |
701 | 701 | ||
702 | if (unlikely(!get_pendown_state(ts) || | 702 | if (unlikely(!get_pendown_state(ts) || |
703 | device_suspended(&ts->spi->dev))) { | 703 | device_suspended(&ts->spi->dev))) { |
@@ -728,7 +728,7 @@ static enum hrtimer_restart ads7846_timer(struct hrtimer *handle) | |||
728 | dev_err(&ts->spi->dev, "spi_async --> %d\n", status); | 728 | dev_err(&ts->spi->dev, "spi_async --> %d\n", status); |
729 | } | 729 | } |
730 | 730 | ||
731 | spin_unlock_irq(&ts->lock); | 731 | spin_unlock(&ts->lock); |
732 | return HRTIMER_NORESTART; | 732 | return HRTIMER_NORESTART; |
733 | } | 733 | } |
734 | 734 | ||