While 'if' statement checks for the vg->gpo_reserved, the wrong argument
is passed to the release_region.
Signed-off-by: Stanislav Fomichev <[email protected]>
---
drivers/gpio/vx855_gpio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/gpio/vx855_gpio.c b/drivers/gpio/vx855_gpio.c
index 8a98ee5..81d7256 100644
--- a/drivers/gpio/vx855_gpio.c
+++ b/drivers/gpio/vx855_gpio.c
@@ -277,7 +277,7 @@ out_release:
if (vg->gpi_reserved)
release_region(res_gpi->start, resource_size(res_gpi));
if (vg->gpo_reserved)
- release_region(res_gpi->start, resource_size(res_gpo));
+ release_region(res_gpo->start, resource_size(res_gpo));
platform_set_drvdata(pdev, NULL);
kfree(vg);
return ret;
--
1.7.1