From 405746efe8af24ebdae8b09e4e27f6a0ee51c12e Mon Sep 17 00:00:00 2001 From: Dave Stevenson Date: Tue, 14 Mar 2017 14:23:06 +0000 Subject: [PATCH] bcm2835-gpio-exp: Copy/paste error adding base twice brcmexp_gpio_set was adding gpio->gc.base to the offset twice, so passing an invalid number to the mailbox service. The firmware treated it modulo-8 anyway, but was logging an assert every time. Signed-off-by: Dave Stevenson --- drivers/gpio/gpio-bcm-exp.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpio-bcm-exp.c b/drivers/gpio/gpio-bcm-exp.c index 681a91492d4c..d68adafaee4a 100644 --- a/drivers/gpio/gpio-bcm-exp.c +++ b/drivers/gpio/gpio-bcm-exp.c @@ -165,8 +165,6 @@ static void brcmexp_gpio_set(struct gpio_chip *gc, unsigned int off, int val) gpio = container_of(gc, struct brcmexp_gpio, gc); - off += gpio->gc.base; - set.gpio = off + gpio->gc.base; /* GPIO to update */ set.state = val; /* Output state */ -- 2.39.2