865dff
Bugzilla: N/A (Eric Paris reported via IRC)
865dff
Upstream-status: Sent for 3.15
865dff
865dff
From: Vincent Donnefort <vdonnefort@gmail.com>
865dff
865dff
This patch fixes kernel NULL pointer BUG introduced by the following commit:
865dff
b667cf488aa9476b0ab64acd91f2a96f188cfd21
865dff
gpio: ich: Add support for multiple register addresses.
865dff
865dff
Signed-off-by: Vincent Donnefort <vdonnefort@gmail.com>
865dff
865dff
diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c
865dff
index e73c675..7030422 100644
865dff
--- a/drivers/gpio/gpio-ich.c
865dff
+++ b/drivers/gpio/gpio-ich.c
865dff
@@ -305,6 +305,8 @@ static struct ichx_desc ich6_desc = {
865dff
 
865dff
 	.ngpio = 50,
865dff
 	.have_blink = true,
865dff
+	.regs = ichx_regs,
865dff
+	.reglen = ichx_reglen,
865dff
 };
865dff
 
865dff
 /* Intel 3100 */
865dff
@@ -324,6 +326,8 @@ static struct ichx_desc i3100_desc = {
865dff
 	.uses_gpe0 = true,
865dff
 
865dff
 	.ngpio = 50,
865dff
+	.regs = ichx_regs,
865dff
+	.reglen = ichx_reglen,
865dff
 };
865dff
 
865dff
 /* ICH7 and ICH8-based */
865dff
-- 
865dff
1.8.3.2