asoc: tegra: aic325x: remove warnings of LP resume
Louis Li [Tue, 30 Apr 2013 04:05:02 +0000 (12:05 +0800)]
[  155.877453] [<c006616c>] (warn_slowpath_null+0x2c/0x34) from
[<c02afbf8>] (__gpio_get_value+0x74/0x100)
[  155.887073] [<c02afbf8>] (__gpio_get_value+0x74/0x100) from
[<c0592b84>] (tegra_aic325x_resume_pre+0x50/0x88)
[  155.897319] [<c0592b84>] (tegra_aic325x_resume_pre+0x50/0x88) from
[<c057ac50>] (soc_resume_deferred+0x60/0x370)
[  155.907730] [<c057ac50>] (soc_resume_deferred+0x60/0x370) from
[<c0081e0c>] (process_one_work+0x178/0x534)
[  155.917624] [<c0081e0c>] (process_one_work+0x178/0x534) from
[<c0082350>] (worker_thread+0x188/0x4d4)

Change-Id: Ieac51701d79a11d721eb85f1817d2316340462b2
Signed-off-by: Louis Li <louli@nvidia.com>
Reviewed-on: http://git-master/r/224113
Reviewed-by: Riham Haidar <rhaidar@nvidia.com>
Tested-by: Riham Haidar <rhaidar@nvidia.com>

sound/soc/tegra/tegra_aic325x.c

index 2c307e4..a444a38 100644 (file)
@@ -1276,7 +1276,7 @@ static int tegra_aic325x_resume_pre(struct snd_soc_card *card)
        struct tegra_aic325x *machine = snd_soc_card_get_drvdata(card);
 
        if (gpio_is_valid(gpio->gpio)) {
-               val = gpio_get_value(gpio->gpio);
+               val = gpio_get_value_cansleep(gpio->gpio);
                val = gpio->invert ? !val : val;
                snd_soc_jack_report(gpio->jack, val, gpio->report);
                enable_irq(gpio_to_irq(gpio->gpio));