Skip to content
Commit 18f3e5d5 authored by Phil Elwell's avatar Phil Elwell Committed by Dom Cobley
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 81889482
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