Commit a7008ee1 authored by Vincent Donnefort's avatar Vincent Donnefort Committed by Linus Walleij
Browse files

gpio: ich: set regs and reglen for i3100 and ich6 chipset



This patch fixes kernel NULL pointer BUG introduced by the following commit:
b667cf48
gpio: ich: Add support for multiple register addresses.

Signed-off-by: default avatarVincent Donnefort <vdonnefort@gmail.com>
Tested-by: default avatarEric Paris <eparis@redhat.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 89ca3b88
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -305,6 +305,8 @@ static struct ichx_desc ich6_desc = {

	.ngpio = 50,
	.have_blink = true,
	.regs = ichx_regs,
	.reglen = ichx_reglen,
};

/* Intel 3100 */
@@ -324,6 +326,8 @@ static struct ichx_desc i3100_desc = {
	.uses_gpe0 = true,

	.ngpio = 50,
	.regs = ichx_regs,
	.reglen = ichx_reglen,
};

/* ICH7 and ICH8-based */