gpio: tegra: initialize chip->dev with driver's dev
Laxman Dewangan [Tue, 1 Oct 2013 13:38:43 +0000 (18:38 +0530)]
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>

drivers/gpio/gpio-tegra.c

index 9ab3fe0..5a2b781 100644 (file)
@@ -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,