diff options
Diffstat (limited to 'drivers/char/ipmi/ipmi_si_intf.c')
-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 7901d5f218ec..a2894d425153 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2253,19 +2253,19 @@ static int __devinit ipmi_of_probe(struct of_device *dev, | |||
2253 | return ret; | 2253 | return ret; |
2254 | } | 2254 | } |
2255 | 2255 | ||
2256 | regsize = get_property(np, "reg-size", &proplen); | 2256 | regsize = of_get_property(np, "reg-size", &proplen); |
2257 | if (regsize && proplen != 4) { | 2257 | if (regsize && proplen != 4) { |
2258 | dev_warn(&dev->dev, PFX "invalid regsize from OF\n"); | 2258 | dev_warn(&dev->dev, PFX "invalid regsize from OF\n"); |
2259 | return -EINVAL; | 2259 | return -EINVAL; |
2260 | } | 2260 | } |
2261 | 2261 | ||
2262 | regspacing = get_property(np, "reg-spacing", &proplen); | 2262 | regspacing = of_get_property(np, "reg-spacing", &proplen); |
2263 | if (regspacing && proplen != 4) { | 2263 | if (regspacing && proplen != 4) { |
2264 | dev_warn(&dev->dev, PFX "invalid regspacing from OF\n"); | 2264 | dev_warn(&dev->dev, PFX "invalid regspacing from OF\n"); |
2265 | return -EINVAL; | 2265 | return -EINVAL; |
2266 | } | 2266 | } |
2267 | 2267 | ||
2268 | regshift = get_property(np, "reg-shift", &proplen); | 2268 | regshift = of_get_property(np, "reg-shift", &proplen); |
2269 | if (regshift && proplen != 4) { | 2269 | if (regshift && proplen != 4) { |
2270 | dev_warn(&dev->dev, PFX "invalid regshift from OF\n"); | 2270 | dev_warn(&dev->dev, PFX "invalid regshift from OF\n"); |
2271 | return -EINVAL; | 2271 | return -EINVAL; |