Input: tegra-kbc - restore missing pdata allocation

Started by Stephen Warren on Mar 29, 2012

Subsystems (3)

Maintainers (3)

DORMANTno replies

open the first message on its own page

Message details and related content
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 / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help