diff options
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index dd441ff4af56..1dd3a065f57b 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2252,19 +2252,19 @@ static int __devinit ipmi_of_probe(struct of_device *dev, | |||
2252 | return ret; | 2252 | return ret; |
2253 | } | 2253 | } |
2254 | 2254 | ||
2255 | regsize = get_property(np, "reg-size", &proplen); | 2255 | regsize = of_get_property(np, "reg-size", &proplen); |
2256 | if (regsize && proplen != 4) { | 2256 | if (regsize && proplen != 4) { |
2257 | dev_warn(&dev->dev, PFX "invalid regsize from OF\n"); | 2257 | dev_warn(&dev->dev, PFX "invalid regsize from OF\n"); |
2258 | return -EINVAL; | 2258 | return -EINVAL; |
2259 | } | 2259 | } |
2260 | 2260 | ||
2261 | regspacing = get_property(np, "reg-spacing", &proplen); | 2261 | regspacing = of_get_property(np, "reg-spacing", &proplen); |
2262 | if (regspacing && proplen != 4) { | 2262 | if (regspacing && proplen != 4) { |
2263 | dev_warn(&dev->dev, PFX "invalid regspacing from OF\n"); | 2263 | dev_warn(&dev->dev, PFX "invalid regspacing from OF\n"); |
2264 | return -EINVAL; | 2264 | return -EINVAL; |
2265 | } | 2265 | } |
2266 | 2266 | ||
2267 | regshift = get_property(np, "reg-shift", &proplen); | 2267 | regshift = of_get_property(np, "reg-shift", &proplen); |
2268 | if (regshift && proplen != 4) { | 2268 | if (regshift && proplen != 4) { |
2269 | dev_warn(&dev->dev, PFX "invalid regshift from OF\n"); | 2269 | dev_warn(&dev->dev, PFX "invalid regshift from OF\n"); |
2270 | return -EINVAL; | 2270 | return -EINVAL; |