Need to stop any device polling on shutdown. Without this, the
laptop can sometimes not turn off.
Signed-off-by: Stephen Hemminger <[EMAIL PROTECTED]>
--- a/drivers/input/misc/apanel.c 2007-11-20 06:11:34.000000000 -0800
+++ b/drivers/input/misc/apanel.c 2007-11-20 06:14:18.000000000 -0800
@@ -193,12 +193,18 @@ static int apanel_attach_adapter(struct
return i2c_probe(adap, &addr_data, apanel_probe);
}
+static void apanel_shutdown(struct i2c_client *client)
+{
+ apanel_detach_client(client);
+}
+
static struct i2c_driver apanel_driver = {
.driver = {
.name = APANEL,
},
.attach_adapter = &apanel_attach_adapter,
.detach_client = &apanel_detach_client,
+ .shutdown = &apanel_shutdown,
};
static struct apanel apanel = {
--
-
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html