diff options
Diffstat (limited to 'arch/arm/common')
| -rw-r--r-- | arch/arm/common/sa1111.c | 2 | ||||
| -rw-r--r-- | arch/arm/common/sharpsl_pm.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/common/sa1111.c b/arch/arm/common/sa1111.c index eb06d0b2cb74..79fa71d990b5 100644 --- a/arch/arm/common/sa1111.c +++ b/arch/arm/common/sa1111.c | |||
| @@ -627,7 +627,7 @@ __sa1111_probe(struct device *me, struct resource *mem, int irq) | |||
| 627 | if (!sachip) | 627 | if (!sachip) |
| 628 | return -ENOMEM; | 628 | return -ENOMEM; |
| 629 | 629 | ||
| 630 | sachip->clk = clk_get(me, "GPIO27_CLK"); | 630 | sachip->clk = clk_get(me, "SA1111_CLK"); |
| 631 | if (!sachip->clk) { | 631 | if (!sachip->clk) { |
| 632 | ret = PTR_ERR(sachip->clk); | 632 | ret = PTR_ERR(sachip->clk); |
| 633 | goto err_free; | 633 | goto err_free; |
diff --git a/arch/arm/common/sharpsl_pm.c b/arch/arm/common/sharpsl_pm.c index 5bba5255b119..8822b684d474 100644 --- a/arch/arm/common/sharpsl_pm.c +++ b/arch/arm/common/sharpsl_pm.c | |||
| @@ -31,6 +31,7 @@ | |||
| 31 | #include <asm/irq.h> | 31 | #include <asm/irq.h> |
| 32 | #include <asm/arch/pm.h> | 32 | #include <asm/arch/pm.h> |
| 33 | #include <asm/arch/pxa-regs.h> | 33 | #include <asm/arch/pxa-regs.h> |
| 34 | #include <asm/arch/pxa2xx-regs.h> | ||
| 34 | #include <asm/arch/sharpsl.h> | 35 | #include <asm/arch/sharpsl.h> |
| 35 | #include <asm/hardware/sharpsl_pm.h> | 36 | #include <asm/hardware/sharpsl_pm.h> |
| 36 | 37 | ||
| @@ -157,6 +158,7 @@ static void sharpsl_battery_thread(struct work_struct *private_) | |||
| 157 | dev_dbg(sharpsl_pm.dev, "Battery: voltage: %d, status: %d, percentage: %d, time: %ld\n", voltage, | 158 | dev_dbg(sharpsl_pm.dev, "Battery: voltage: %d, status: %d, percentage: %d, time: %ld\n", voltage, |
| 158 | sharpsl_pm.battstat.mainbat_status, sharpsl_pm.battstat.mainbat_percent, jiffies); | 159 | sharpsl_pm.battstat.mainbat_status, sharpsl_pm.battstat.mainbat_percent, jiffies); |
| 159 | 160 | ||
| 161 | #ifdef CONFIG_BACKLIGHT_CORGI | ||
| 160 | /* If battery is low. limit backlight intensity to save power. */ | 162 | /* If battery is low. limit backlight intensity to save power. */ |
| 161 | if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) | 163 | if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) |
| 162 | && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) || | 164 | && ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) || |
| @@ -169,6 +171,7 @@ static void sharpsl_battery_thread(struct work_struct *private_) | |||
| 169 | sharpsl_pm.machinfo->backlight_limit(0); | 171 | sharpsl_pm.machinfo->backlight_limit(0); |
| 170 | sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT; | 172 | sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT; |
| 171 | } | 173 | } |
| 174 | #endif | ||
| 172 | 175 | ||
| 173 | /* Suspend if critical battery level */ | 176 | /* Suspend if critical battery level */ |
| 174 | if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) | 177 | if ((sharpsl_pm.battstat.ac_status != APM_AC_ONLINE) |
