gpio: mlxbf2.c: Add check for bgpio_init failure
authorAsmaa Mnebhi <asmaa@nvidia.com>
Fri, 22 Oct 2021 13:44:38 +0000 (09:44 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 13:03:42 +0000 (14:03 +0100)
commit69b14e23dfc3c140a9513266763c58d4688b038a
treefddc5bd13cbdbf4c96826cfbf9cb772e1581fcc5
parentb92ac0a9ca8f27076c2096cae0896b94aaa4a6ac
gpio: mlxbf2.c: Add check for bgpio_init failure

[ Upstream commit c0eee6fbfa2b3377f1efed10dad539abeb7312aa ]

Add a check if bgpio_init fails.

Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpio/gpio-mlxbf2.c