Messages in this thread Patch in this message | | | Date | Mon, 20 Jul 2009 12:47:26 +0200 | From | Pavel Machek <> | Subject | Re: HTC: touchscreen driver |
| |
Hi!
You probably want (something like) this to mostly fix !EARLY_SUSPEND compilation.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
index a45634b..e916cea 100644 --- a/drivers/staging/dream/synaptics_i2c_rmi.c +++ b/drivers/staging/dream/synaptics_i2c_rmi.c @@ -45,7 +44,9 @@ struct synaptics_ts_data { int snap_up[2]; uint32_t flags; int (*power)(int on); +#ifdef CONFIG_HAS_EARLYSUSPEND struct early_suspend early_suspend; +#endif }; #ifdef CONFIG_HAS_EARLYSUSPEND @@ -515,7 +516,9 @@ err_check_functionality_failed: static int synaptics_ts_remove(struct i2c_client *client) { struct synaptics_ts_data *ts = i2c_get_clientdata(client); +#ifdef CONFIG_HAS_EARLYSUSPEND unregister_early_suspend(&ts->early_suspend); +#endif if (ts->use_irq) free_irq(client->irq, ts); else
-- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
| |