提交 9c25099d 编写于 作者: S Stephen Rothwell 提交者: Paul Mackerras

[POWERPC] Use of_get_property in ipmi code

get_property has been renamed to of_get_property.
Signed-off-by: NStephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 9dfe5c53
......@@ -2251,19 +2251,19 @@ static int __devinit ipmi_of_probe(struct of_device *dev,
return ret;
}
regsize = get_property(np, "reg-size", &proplen);
regsize = of_get_property(np, "reg-size", &proplen);
if (regsize && proplen != 4) {
dev_warn(&dev->dev, PFX "invalid regsize from OF\n");
return -EINVAL;
}
regspacing = get_property(np, "reg-spacing", &proplen);
regspacing = of_get_property(np, "reg-spacing", &proplen);
if (regspacing && proplen != 4) {
dev_warn(&dev->dev, PFX "invalid regspacing from OF\n");
return -EINVAL;
}
regshift = get_property(np, "reg-shift", &proplen);
regshift = of_get_property(np, "reg-shift", &proplen);
if (regshift && proplen != 4) {
dev_warn(&dev->dev, PFX "invalid regshift from OF\n");
return -EINVAL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册