tegra: power: add wakeup_key method
Jay Cheng [Tue, 16 Aug 2011 02:03:23 +0000 (22:03 -0400)]
connect wakeup_key method to KEY_POWER (TEGRA_WAKE_GPIO_PV2)

Change-Id: I13b8f503399989bb06e97343711ed9e7348839ac
Reviewed-on: http://git-master/r/47364
Tested-by: Cho-Che Cheng <jacheng@nvidia.com>
Reviewed-by: Scott Williams <scwilliams@nvidia.com>
Reviewed-by: Chih-Lung Huang <lhuang@nvidia.com>
Reviewed-by: Daniel Willemsen <dwillemsen@nvidia.com>

Rebase-Id: Rffb10919b9cfa49c975f37d12646a34aeee44375

arch/arm/mach-tegra/board-ventana.c

index 5af9805..1ed2a56 100644 (file)
@@ -248,6 +248,7 @@ static int ventana_wakeup_key(void)
 static struct gpio_keys_platform_data ventana_keys_platform_data = {
        .buttons        = ventana_keys,
        .nbuttons       = ARRAY_SIZE(ventana_keys),
+       .wakeup_key     = ventana_wakeup_key,
 };
 
 static struct platform_device ventana_keys_device = {