aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/common/locomo.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/common/locomo.c')
-rw-r--r--arch/arm/common/locomo.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/arm/common/locomo.c b/arch/arm/common/locomo.c
index 557e52c1c869..1b7eaab02b9e 100644
--- a/arch/arm/common/locomo.c
+++ b/arch/arm/common/locomo.c
@@ -623,8 +623,6 @@ static int locomo_resume(struct platform_device *dev)
623 locomo_writel(0x1, lchip->base + LOCOMO_KEYBOARD + LOCOMO_KCMD); 623 locomo_writel(0x1, lchip->base + LOCOMO_KEYBOARD + LOCOMO_KCMD);
624 624
625 spin_unlock_irqrestore(&lchip->lock, flags); 625 spin_unlock_irqrestore(&lchip->lock, flags);
626
627 dev->power.saved_state = NULL;
628 kfree(save); 626 kfree(save);
629 627
630 return 0; 628 return 0;
@@ -775,7 +773,7 @@ static int locomo_probe(struct platform_device *dev)
775 773
776static int locomo_remove(struct platform_device *dev) 774static int locomo_remove(struct platform_device *dev)
777{ 775{
778 struct locomo *lchip = platform__get_drvdata(dev); 776 struct locomo *lchip = platform_get_drvdata(dev);
779 777
780 if (lchip) { 778 if (lchip) {
781 __locomo_remove(lchip); 779 __locomo_remove(lchip);