summaryrefslogtreecommitdiff
path: root/drivers/gpio/gpio-mt7621.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-08-20 18:38:03 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-08-31 13:10:12 +0300
commit7d6588931ccd4c09e70a08175cf2e0cf7fc3b869 (patch)
tree38e5b11c8bb4449c808543cda923c7c015c3949e /drivers/gpio/gpio-mt7621.c
parent555bda42b0c1a5ffb72d3227c043e8afde778f1f (diff)
downloadlinux-7d6588931ccd4c09e70a08175cf2e0cf7fc3b869.tar.xz
gpio: mpc8xxx: Fix a potential double iounmap call in 'mpc8xxx_probe()'
Commit 76c47d1449fc ("gpio: mpc8xxx: Add ACPI support") has switched to a managed version when dealing with 'mpc8xxx_gc->regs'. So the corresponding 'iounmap()' call in the error handling path and in the remove should be removed to avoid a double unmap. This also allows some simplification in the probe. All the error handling paths related to managed resources can be direct returns and a NULL check in what remains in the error handling path can be removed. Fixes: 76c47d1449fc ("gpio: mpc8xxx: Add ACPI support") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Diffstat (limited to 'drivers/gpio/gpio-mt7621.c')
0 files changed, 0 insertions, 0 deletions