ARM: rockchip: cpu.c support export cpu version

This commit is contained in:
黄涛
2014-10-27 18:39:14 +08:00
parent 45e2c3ff28
commit 84a54e9455

View File

@@ -28,6 +28,10 @@ static ssize_t type_show(struct device *dev, struct device_attribute *attr, char
else
type = "";
if (rockchip_get_cpu_version())
return sprintf(buf, "%sv%lu\n", type,
rockchip_get_cpu_version());
return sprintf(buf, "%s\n", type);
}