From: Randy Dunlap <hidden> Date: 2011-08-29 19:50:27
From: Randy Dunlap <redacted>
Fix warning from Geert's build summary emails by changing "if" to
"ifdef". Also handle the case of CONFIG_PM_SLEEP not enabled.
drivers/input/misc/twl6040-vibra.c:231:5: warning: "CONFIG_PM_SLEEP" is not defined
Builds cleanly with CONFIG_PM_SLEEP enabled or disabled.
Signed-off-by: Randy Dunlap <redacted>
---
drivers/input/misc/twl6040-vibra.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
Hi Randy,
On Mon, Aug 29, 2011 at 12:50:17PM -0700, Randy Dunlap wrote:
quoted hunk
From: Randy Dunlap <redacted>
Fix warning from Geert's build summary emails by changing "if" to
"ifdef". Also handle the case of CONFIG_PM_SLEEP not enabled.
drivers/input/misc/twl6040-vibra.c:231:5: warning: "CONFIG_PM_SLEEP" is not defined
Builds cleanly with CONFIG_PM_SLEEP enabled or disabled.
Signed-off-by: Randy Dunlap <redacted>
---
drivers/input/misc/twl6040-vibra.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
This is actually the only change that is needed. In case when
CONFIG_PM_SLEEP is not defined SIMPLE_DEV_PM_OPS() produces empty
'struct dev_pm_ops' so no additional #ifdef-ing is needed.
Thanks.
--
Dmitry
From: Randy Dunlap <hidden> Date: 2011-08-30 21:07:20
On Mon, 29 Aug 2011 23:59:31 -0700 Dmitry Torokhov wrote:
Hi Randy,
On Mon, Aug 29, 2011 at 12:50:17PM -0700, Randy Dunlap wrote:
quoted
From: Randy Dunlap <redacted>
Fix warning from Geert's build summary emails by changing "if" to
"ifdef". Also handle the case of CONFIG_PM_SLEEP not enabled.
drivers/input/misc/twl6040-vibra.c:231:5: warning: "CONFIG_PM_SLEEP" is not defined
Builds cleanly with CONFIG_PM_SLEEP enabled or disabled.
Signed-off-by: Randy Dunlap <redacted>
---
drivers/input/misc/twl6040-vibra.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
This is actually the only change that is needed. In case when
CONFIG_PM_SLEEP is not defined SIMPLE_DEV_PM_OPS() produces empty
'struct dev_pm_ops' so no additional #ifdef-ing is needed.
Ah, I see. Thanks for the info.
Do I need to resend the patch?
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
On Tue, Aug 30, 2011 at 02:07:13PM -0700, Randy Dunlap wrote:
On Mon, 29 Aug 2011 23:59:31 -0700 Dmitry Torokhov wrote:
quoted
Hi Randy,
On Mon, Aug 29, 2011 at 12:50:17PM -0700, Randy Dunlap wrote:
quoted
From: Randy Dunlap <redacted>
Fix warning from Geert's build summary emails by changing "if" to
"ifdef". Also handle the case of CONFIG_PM_SLEEP not enabled.
drivers/input/misc/twl6040-vibra.c:231:5: warning: "CONFIG_PM_SLEEP" is not defined
Builds cleanly with CONFIG_PM_SLEEP enabled or disabled.
Signed-off-by: Randy Dunlap <redacted>
---
drivers/input/misc/twl6040-vibra.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
This is actually the only change that is needed. In case when
CONFIG_PM_SLEEP is not defined SIMPLE_DEV_PM_OPS() produces empty
'struct dev_pm_ops' so no additional #ifdef-ing is needed.
Ah, I see. Thanks for the info.
Do I need to resend the patch?