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

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
...@@ -305,6 +305,8 @@ static struct ichx_desc ich6_desc = { ...@@ -305,6 +305,8 @@ static struct ichx_desc ich6_desc = {
.ngpio = 50, .ngpio = 50,
.have_blink = true, .have_blink = true,
.regs = ichx_regs,
.reglen = ichx_reglen,
}; };
/* Intel 3100 */ /* Intel 3100 */
...@@ -324,6 +326,8 @@ static struct ichx_desc i3100_desc = { ...@@ -324,6 +326,8 @@ static struct ichx_desc i3100_desc = {
.uses_gpe0 = true, .uses_gpe0 = true,
.ngpio = 50, .ngpio = 50,
.regs = ichx_regs,
.reglen = ichx_reglen,
}; };
/* ICH7 and ICH8-based */ /* ICH7 and ICH8-based */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment