]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/base/sys.c
[PATCH] Use bus_for_each_{dev,drv} for driver binding.
[linux-2.6-omap-h63xx.git] / drivers / base / sys.c
index cff5a6a2c78419153fd279786777fffe2db0cb1a..f37a13de804a9905c131f59d75c07ada35f9dd9d 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/string.h>
+#include <linux/pm.h>
 
 
 extern struct subsystem devices_subsys;
@@ -36,7 +37,7 @@ sysdev_show(struct kobject * kobj, struct attribute * attr, char * buffer)
 
        if (sysdev_attr->show)
                return sysdev_attr->show(sysdev, buffer);
-       return 0;
+       return -EIO;
 }
 
 
@@ -49,7 +50,7 @@ sysdev_store(struct kobject * kobj, struct attribute * attr,
 
        if (sysdev_attr->store)
                return sysdev_attr->store(sysdev, buffer, count);
-       return 0;
+       return -EIO;
 }
 
 static struct sysfs_ops sysfs_ops = {
@@ -302,7 +303,7 @@ void sysdev_shutdown(void)
  *     all synchronization.
  */
 
-int sysdev_suspend(u32 state)
+int sysdev_suspend(pm_message_t state)
 {
        struct sysdev_class * cls;