[PATCH] vx855: fix gpo resource releasing

From: Stanislav Fomichev
Date: Sat Feb 05 2011 - 17:40:07 EST


While 'if' statement checks for the vg->gpo_reserved, the wrong argument
is passed to the release_region.

Signed-off-by: Stanislav Fomichev <kernel@xxxxxxxxxxx>
---
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/