]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/i2c/chips/tps65010.c
PM: Separate hibernation code from suspend code
[karo-tx-linux.git] / drivers / i2c / chips / tps65010.c
index 4ee56def61f277cd019001dd9ffb434053f59f38..3c3f2ebf3fc9786eecf042ed4aa1d1ae9a56c9c3 100644 (file)
@@ -308,7 +308,7 @@ static int dbg_tps_open(struct inode *inode, struct file *file)
        return single_open(file, dbg_show, inode->i_private);
 }
 
-static struct file_operations debug_fops = {
+static const struct file_operations debug_fops = {
        .open           = dbg_tps_open,
        .read           = seq_read,
        .llseek         = seq_lseek,
@@ -351,8 +351,10 @@ static void tps65010_interrupt(struct tps65010 *tps)
 #if 0
                        /* REVISIT:  this might need its own workqueue
                         * plus tweaks including deadlock avoidance ...
+                        * also needs to get error handling and probably
+                        * an #ifdef CONFIG_SOFTWARE_SUSPEND
                         */
-                       software_suspend();
+                       hibernate();
 #endif
                        poll = 1;
                }