Skip to content
Commit 5f7df3b5 authored by Phil Elwell's avatar Phil Elwell Committed by popcornmix
Browse files

pinctrl: bcm2835: Remove gpiochip on error



A failure in gpiochip_irqchip_add leads to a leak of a gpiochip. Fix
the leak with the use of devm_gpiochip_add_data.

Fixes: 85ae9e51 ("pinctrl: bcm2835: switch to GPIOLIB_IRQCHIP")
Signed-off-by: default avatarPhil Elwell <phil@raspberrypi.org>
parent 9eccc3f7
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment