Re: [PATCH] char/tpm: Fix compile error if CONFIG_PM is not set in tpm_i2c_infineon

2012-08-03 Thread Kent Yoder
Hi Peter, On Fri, Aug 03, 2012 at 04:51:16PM +0200, Peter Huewe wrote: > If CONFIG_PM was not set the compiler aborted with the following message: > tpm_i2c_infineon.c:740:12: error: lvalue required as unary '&' operand > > This patch fixes this error by not defining tpm_tis_i2c_ops as NULL if >

[PATCH] char/tpm: Fix compile error if CONFIG_PM is not set in tpm_i2c_infineon

2012-08-03 Thread Peter Huewe
If CONFIG_PM was not set the compiler aborted with the following message: tpm_i2c_infineon.c:740:12: error: lvalue required as unary '&' operand This patch fixes this error by not defining tpm_tis_i2c_ops as NULL if CONFIG_PM is not set, but only setting the suspend and resume function pointer as