summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-10-27 22:21:48 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-10-31 13:13:34 +0100
commiteb3288992864616b66e6442fecfba9e3474e42c5 (patch)
treead1df785b559b2e318aaa2f442ce8e973437cacc /drivers/md/dm-snap.c
parentgpio: mb86s7x: share with other SoCs as module (diff)
downloadlinux-eb3288992864616b66e6442fecfba9e3474e42c5.tar.xz
linux-eb3288992864616b66e6442fecfba9e3474e42c5.zip
gpio: mb86s70: Revert "Return error if requesting an already assigned gpio"
Commit fd9c963c5661 ("gpio: mb86s70: Return error if requesting an already assigned gpio") adds code that infers from the state of the GPIO Pin Function Register (PFR) whether a GPIO has been assigned already. This assumes that the pin functions are set to 'peripheral' when the driver is loaded, which is not guaranteed. Also, the GPIO layer is perfectly capable of keeping track of which GPIOs have been assigned already, so we shouldn't need this check in the first place. This reverts commit fd9c963c5661af3403e77e312c0d9941773b6c1b. Cc: Axel Lin <axel.lin@ingics.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Acked-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/md/dm-snap.c')
0 files changed, 0 insertions, 0 deletions