summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaxman Dewangan <ldewangan@nvidia.com>2013-10-01 19:08:43 +0530
committerAjay Nandakumar <anandakumarm@nvidia.com>2013-10-03 23:31:17 +0530
commit8d33a22521d9a41b25478f62174d207153b9b4b9 (patch)
treef6bb38eb1c8f99a84fd5c441becdb5c369344d35
parent72a2e5370e5dec0dce402bf205369f073418dd19 (diff)
gpio: tegra: initialize chip->dev with driver's dev
This is used when gpio core wants to print the message using dev_*. Change-Id: I033375b5af8d4df731bf11dba9662798b44dcab8 Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com> Reviewed-on: http://git-master/r/280740 (cherry picked from commit 5b238b4c6d75ea80df5cbdb388fad3fe1e2906c4) Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>
-rw-r--r--drivers/gpio/gpio-tegra.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-tegra.c b/drivers/gpio/gpio-tegra.c
index 9ab3fe035304..5a2b7811bc98 100644
--- a/drivers/gpio/gpio-tegra.c
+++ b/drivers/gpio/gpio-tegra.c
@@ -544,6 +544,7 @@ static int tegra_gpio_probe(struct platform_device *pdev)
return -ENODEV;
}
+ tegra_gpio_chip.dev = &pdev->dev;
tegra_gpio_chip.ngpio = tegra_gpio_bank_count * 32;
tegra_gpio_banks = devm_kzalloc(&pdev->dev,