diff --git a/drivers/base/class.c b/drivers/base/class.c
index 86c7775c42bdcd134e10442b79675714d5201da3..af20f4b1e5fed86d9439b31659aad5f6b9f47e66 100644
--- a/drivers/base/class.c
+++ b/drivers/base/class.c
@@ -42,8 +42,8 @@ devclass_attr_store(struct kobject * kobj, struct attribute * attr,
 }
 
 static struct sysfs_ops class_sysfs_ops = {
-	show:	devclass_attr_show,
-	store:	devclass_attr_store,
+	.show	= devclass_attr_show,
+	.store	= devclass_attr_store,
 };
 
 static struct subsystem class_subsys = {