From: Jarkko Nikula Date: Wed, 31 Oct 2007 12:04:41 +0000 (+0200) Subject: CBUS: Manage bias voltage in retu-headset suspend/resume code X-Git-Tag: v2.6.24-omap1~242 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=9afd4b705891e8afd505ecabec25539b22416d7a;p=linux-2.6-omap-h63xx.git CBUS: Manage bias voltage in retu-headset suspend/resume code Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- diff --git a/drivers/cbus/retu-headset.c b/drivers/cbus/retu-headset.c index ac213942513..7f3f808bb55 100644 --- a/drivers/cbus/retu-headset.c +++ b/drivers/cbus/retu-headset.c @@ -288,11 +288,21 @@ static int retu_headset_remove(struct platform_device *pdev) static int retu_headset_suspend(struct platform_device *pdev, pm_message_t mesg) { + struct retu_headset *hs = platform_get_drvdata(pdev); + + if (hs->bias_enabled) + retu_headset_set_bias(0); + return 0; } static int retu_headset_resume(struct platform_device *pdev) { + struct retu_headset *hs = platform_get_drvdata(pdev); + + if (hs->bias_enabled) + retu_headset_set_bias(1); + return 0; }