#include <asm/prom.h>
#include "cbe_regs.h"
+#include "spu_priv1_mmio.h"
static struct cbe_pmd_regs __iomem *get_pmd_regs(struct sys_device *sysdev)
{
spu = container_of(sysdev, struct spu, sysdev);
- return cbe_get_pmd_regs(spu->devnode);
+ return cbe_get_pmd_regs(spu_devnode(spu));
}
/* returns the value for a given spu in a given register */
/* getting the id from the reg attribute will not work on future device-tree layouts
* in future we should store the id to the spu struct and use it here */
spu = container_of(sysdev, struct spu, sysdev);
- id = (unsigned int *)get_property(spu->devnode, "reg", NULL);
+ id = (unsigned int *)get_property(spu_devnode(spu), "reg", NULL);
value.val = in_be64(®->val);
return value.spe[*id];
static struct attribute *spu_attributes[] = {
&attr_spu_temperature.attr,
+ NULL,
};
static struct attribute_group spu_attribute_group = {
static struct attribute *ppe_attributes[] = {
&attr_ppe_temperature0.attr,
&attr_ppe_temperature1.attr,
+ NULL,
};
static struct attribute_group ppe_attribute_group = {