[ACPI] merge acpi-2.6.12 branch into latest Linux 2.6.13-rc...
[linux-drm-fsl-dcu.git] / drivers / base / sys.c
index 5474bf9622d581d29318b91263aff14df978c48c..214b96435409e139ae730be68de1439b569cae1d 100644 (file)
@@ -36,7 +36,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 +49,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 = {