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

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'gpio-fixes-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux

Pull gpio fixes from Bartosz Golaszewski:

- fix the return value check when parsing the ngpios property in
gpio-xgs-iproc

- check the return value of bgpio_init() in gpio-mlxbf2

* tag 'gpio-fixes-for-v5.15' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux:
gpio: mlxbf2.c: Add check for bgpio_init failure
gpio: xgs-iproc: fix parsing of ngpios property

+6 -1
+5
drivers/gpio/gpio-mlxbf2.c
··· 256 256 NULL, 257 257 0); 258 258 259 + if (ret) { 260 + dev_err(dev, "bgpio_init failed\n"); 261 + return ret; 262 + } 263 + 259 264 gc->direction_input = mlxbf2_gpio_direction_input; 260 265 gc->direction_output = mlxbf2_gpio_direction_output; 261 266 gc->ngpio = npins;
+1 -1
drivers/gpio/gpio-xgs-iproc.c
··· 224 224 } 225 225 226 226 chip->gc.label = dev_name(dev); 227 - if (of_property_read_u32(dn, "ngpios", &num_gpios)) 227 + if (!of_property_read_u32(dn, "ngpios", &num_gpios)) 228 228 chip->gc.ngpio = num_gpios; 229 229 230 230 irq = platform_get_irq(pdev, 0);