DORMANTno replies

[PATCH] Input: tegra-kbc - restore missing pdata allocation

From: Stephen Warren <hidden>
Date: 2012-03-29 15:53:06
Also in: linux-tegra
Subsystem: input (keyboard, mouse, joystick, touchscreen) drivers, tegra kbc driver, the rest · Maintainers: Dmitry Torokhov, Laxman Dewangan, Linus Torvalds

Commit 023cea0 "Input: tegra-kbc - allow skipping setting up some of
GPIO pins" accidentally removed this code. Add it back.

Signed-off-by: Stephen Warren <redacted>
---
 drivers/input/keyboard/tegra-kbc.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/input/keyboard/tegra-kbc.c b/drivers/input/keyboard/tegra-kbc.c
index 21c42f8..fe4ac95 100644
--- a/drivers/input/keyboard/tegra-kbc.c
+++ b/drivers/input/keyboard/tegra-kbc.c
@@ -630,6 +630,7 @@ tegra_kbc_dt_parse_pdata(struct platform_device *pdev)
 	if (!np)
 		return NULL;
 
+	pdata = kzalloc(sizeof(*pdata), GFP_KERNEL);
 	if (!pdata)
 		return NULL;
 
-- 
1.7.0.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help