aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/keyboard/sh_keysc.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/input/keyboard/sh_keysc.c b/drivers/input/keyboard/sh_keysc.c
index bf92178644ab..e1480fb11de3 100644
--- a/drivers/input/keyboard/sh_keysc.c
+++ b/drivers/input/keyboard/sh_keysc.c
@@ -257,13 +257,10 @@ static int __devexit sh_keysc_remove(struct platform_device *pdev)
257 257
258static int sh_keysc_suspend(struct device *dev) 258static int sh_keysc_suspend(struct device *dev)
259{ 259{
260 struct platform_device *pdev; 260 struct platform_device *pdev = to_platform_device(dev);
261 struct sh_keysc_priv *priv; 261 struct sh_keysc_priv *priv = platform_get_drvdata(pdev);
262 unsigned short value; 262 unsigned short value;
263 263
264 pdev = container_of(dev, struct platform_device, dev);
265 priv = platform_get_drvdata(pdev);
266
267 value = ioread16(priv->iomem_base + KYCR1_OFFS); 264 value = ioread16(priv->iomem_base + KYCR1_OFFS);
268 265
269 if (device_may_wakeup(dev)) 266 if (device_may_wakeup(dev))