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

- Subsystems: INPUT (KEYBOARD, MOUSE, JOYSTICK, TOUCHSCREEN) DRIVERS, TEGRA KBC DRIVER, THE REST
- Maintainers: Dmitry Torokhov, Laxman Dewangan, Linus Torvalds
- List: linux-input
- 1 message, 1 author
- Page: https://ratatoskr.run/linux-input/2012/03/8919169/t

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

- From: Stephen Warren \<hidden\>
- Date: 2012-03-29 15:53:06 
- Message: https://ratatoskr.run/linux-input/2012/03/8919169.md

```text
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

```
