From patchwork Sat May 29 22:31:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Doerffel X-Patchwork-Id: 103096 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o4TMVtLd029486 for ; Sat, 29 May 2010 22:31:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756791Ab0E2Wbx (ORCPT ); Sat, 29 May 2010 18:31:53 -0400 Received: from jessica.hrz.tu-chemnitz.de ([134.109.132.47]:46760 "EHLO jessica.hrz.tu-chemnitz.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756765Ab0E2Wbw (ORCPT ); Sat, 29 May 2010 18:31:52 -0400 X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 29 May 2010 22:31:55 +0000 (UTC) X-Greylist: delayed 473 seconds by postgrey-1.27 at vger.kernel.org; Sat, 29 May 2010 18:31:52 EDT Received: from vpnclient-194-148.hrz.tu-chemnitz.de ([134.109.194.148] helo=localhost.localdomain) by jessica.hrz.tu-chemnitz.de with esmtpa (Exim 4.69) (envelope-from ) id 1OIUZL-0005NI-IZ; Sun, 30 May 2010 00:31:51 +0200 From: Tobias Doerffel To: linux-input@vger.kernel.org Cc: Tobias Doerffel Subject: [PATCH] Input: twl4030-vibra - depend on CONFIG_PM_SLEEP for suspend/resume functions Date: Sun, 30 May 2010 00:31:48 +0200 Message-Id: <1275172308-15093-1-git-send-email-tobias.doerffel@gmail.com> X-Mailer: git-send-email 1.7.0.4 MIME-Version: 1.0 X-Spam-Score: 0.2 (/) X-Spam-Report: --- Start der SpamAssassin 3.3.0 Textanalyse (0.2 Punkte) Fragen an/questions to: Postmaster TU Chemnitz * -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP * 0.0 FREEMAIL_FROM Sender email is freemail * (tobias.doerffel[at]gmail.com) * 0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is * CUSTOM_MED * 1.2 NML_ADSP_CUSTOM_MED ADSP custom_med hit, and not from a mailing list * 0.0 T_TO_NO_BRKTS_FREEMAIL T_TO_NO_BRKTS_FREEMAIL --- Ende der SpamAssassin Textanalyse X-Scan-Signature: aa86db5e7f3e85aa9355d5c307b12c26 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org diff --git a/drivers/input/misc/twl4030-vibra.c b/drivers/input/misc/twl4030-vibra.c index 4f9b2af..3600bca 100644 --- a/drivers/input/misc/twl4030-vibra.c +++ b/drivers/input/misc/twl4030-vibra.c @@ -172,7 +172,7 @@ static void twl4030_vibra_close(struct input_dev *input) } /*** Module ***/ -#if CONFIG_PM +#ifdef CONFIG_PM_SLEEP static int twl4030_vibra_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); @@ -273,7 +273,7 @@ static struct platform_driver twl4030_vibra_driver = { .driver = { .name = "twl4030_codec_vibra", .owner = THIS_MODULE, -#ifdef CONFIG_PM +#ifdef CONFIG_PM_SLEEP .pm = &twl4030_vibra_pm_ops, #endif },