Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Input: tegra-kbc - allocate pdata before using it

Following commit broke DT support for tegra-kbc by removing pdata
allocation completely:

commit 023cea0ecfa2df034096c3f4afa796a0b2d1188a
Author: Shridhar Rasal <srasal@nvidia.com>
Date: Fri Feb 3 00:27:30 2012 -0800

Input: tegra-kbc - allow skipping setting up some of GPIO pins

This patch restores it.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>

authored by

Viresh Kumar and committed by
Dmitry Torokhov
131c713f 3183968c

+1
+1
drivers/input/keyboard/tegra-kbc.c
··· 630 630 if (!np) 631 631 return NULL; 632 632 633 + pdata = kzalloc(sizeof(*pdata), GFP_KERNEL); 633 634 if (!pdata) 634 635 return NULL; 635 636