[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090720104726.GE19341@elf.ucw.cz>
Date: Mon, 20 Jul 2009 12:47:26 +0200
From: Pavel Machek <pavel@....cz>
To: Arve Hj?nnev?g <arve@...roid.com>
Cc: Brian Swetland <swetland@...gle.com>,
kernel list <linux-kernel@...r.kernel.org>
Subject: Re: HTC: touchscreen driver
Hi!
You probably want (something like) this to mostly fix !EARLY_SUSPEND
compilation.
Signed-off-by: Pavel Machek <pavel@....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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists