summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorGary King <gking@nvidia.com>2010-02-09 21:19:33 -0800
committerGary King <gking@nvidia.com>2010-02-09 21:21:28 -0800
commit17a71d371f2f4a88056762c092389484cdf23a5e (patch)
treed653cdb0de046c2dbd88ce9b11cd26ab9f6f1e00 /drivers
parentb554d4a645877f67cc2365bbd4659a52543d8408 (diff)
touchscreen: fix build break for non-early-suspend tegra driver
the previous change to tegra-odm.c introduced suspend & early suspend codepaths, but the suspend code path didn't build. fix the build break, and clean up some warnings caused by not including <linux/tegra_devices.h> Change-Id: I73b40a50e508ed95bbcccac1bf5234e057c88d5d
Diffstat (limited to 'drivers')
-rwxr-xr-xdrivers/input/touchscreen/tegra_odm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/touchscreen/tegra_odm.c b/drivers/input/touchscreen/tegra_odm.c
index 6581fea05ce9..9eaa0ccbee02 100755
--- a/drivers/input/touchscreen/tegra_odm.c
+++ b/drivers/input/touchscreen/tegra_odm.c
@@ -27,7 +27,7 @@
#include <linux/delay.h>
#include <linux/earlysuspend.h>
#include <linux/freezer.h>
-
+#include <linux/tegra_devices.h>
#include <nvodm_services.h>
#include <nvodm_touch.h>
@@ -81,7 +81,7 @@ static void tegra_touch_late_resume(struct early_suspend *es)
#else
static int tegra_touch_suspend(struct platform_device *pdev, pm_message_t state)
{
- struct tegra_touch_driver_data *touch = platform_get_drvdata(input_dev);
+ struct tegra_touch_driver_data *touch = platform_get_drvdata(pdev);
if (touch && touch->hTouchDevice) {
NvOdmTouchPowerOnOff(touch->hTouchDevice, NV_FALSE);