X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fbase%2Fsys.c;h=9354dc10a3635b25e87ca10fe92babffb9faba9d;hb=5a0e3ad6af8660be21ca98a971cd00f331318c05;hp=747c99e0568bf5c144e6d88f913ada75c62d8632;hpb=38457ab3a0d36320370c715145ba6da514127194;p=pandora-kernel.git diff --git a/drivers/base/sys.c b/drivers/base/sys.c index 747c99e0568b..9354dc10a363 100644 --- a/drivers/base/sys.c +++ b/drivers/base/sys.c @@ -17,7 +17,6 @@ #include #include #include -#include #include #include #include @@ -54,7 +53,7 @@ sysdev_store(struct kobject *kobj, struct attribute *attr, return -EIO; } -static struct sysfs_ops sysfs_ops = { +static const struct sysfs_ops sysfs_ops = { .show = sysdev_show, .store = sysdev_store, }; @@ -104,7 +103,7 @@ static ssize_t sysdev_class_store(struct kobject *kobj, struct attribute *attr, return -EIO; } -static struct sysfs_ops sysfs_class_ops = { +static const struct sysfs_ops sysfs_class_ops = { .show = sysdev_class_show, .store = sysdev_class_store, };