diff options
Diffstat (limited to 'drivers/char')
-rw-r--r-- | drivers/char/hvc_beat.c | 4 | ||||
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/drivers/char/hvc_beat.c b/drivers/char/hvc_beat.c index 6f019f19be71..e74bb949c289 100644 --- a/drivers/char/hvc_beat.c +++ b/drivers/char/hvc_beat.c | |||
@@ -97,7 +97,7 @@ static int hvc_beat_config(char *p) | |||
97 | return 0; | 97 | return 0; |
98 | } | 98 | } |
99 | 99 | ||
100 | static int hvc_beat_console_init(void) | 100 | static int __init hvc_beat_console_init(void) |
101 | { | 101 | { |
102 | if (hvc_beat_useit && machine_is_compatible("Beat")) { | 102 | if (hvc_beat_useit && machine_is_compatible("Beat")) { |
103 | hvc_instantiate(0, 0, &hvc_beat_get_put_ops); | 103 | hvc_instantiate(0, 0, &hvc_beat_get_put_ops); |
@@ -106,7 +106,7 @@ static int hvc_beat_console_init(void) | |||
106 | } | 106 | } |
107 | 107 | ||
108 | /* temp */ | 108 | /* temp */ |
109 | static int hvc_beat_init(void) | 109 | static int __init hvc_beat_init(void) |
110 | { | 110 | { |
111 | struct hvc_struct *hp; | 111 | struct hvc_struct *hp; |
112 | 112 | ||
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index 9b07f7851061..f2e5cb1bedf3 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2251,19 +2251,19 @@ static int __devinit ipmi_of_probe(struct of_device *dev, | |||
2251 | return ret; | 2251 | return ret; |
2252 | } | 2252 | } |
2253 | 2253 | ||
2254 | regsize = get_property(np, "reg-size", &proplen); | 2254 | regsize = of_get_property(np, "reg-size", &proplen); |
2255 | if (regsize && proplen != 4) { | 2255 | if (regsize && proplen != 4) { |
2256 | dev_warn(&dev->dev, PFX "invalid regsize from OF\n"); | 2256 | dev_warn(&dev->dev, PFX "invalid regsize from OF\n"); |
2257 | return -EINVAL; | 2257 | return -EINVAL; |
2258 | } | 2258 | } |
2259 | 2259 | ||
2260 | regspacing = get_property(np, "reg-spacing", &proplen); | 2260 | regspacing = of_get_property(np, "reg-spacing", &proplen); |
2261 | if (regspacing && proplen != 4) { | 2261 | if (regspacing && proplen != 4) { |
2262 | dev_warn(&dev->dev, PFX "invalid regspacing from OF\n"); | 2262 | dev_warn(&dev->dev, PFX "invalid regspacing from OF\n"); |
2263 | return -EINVAL; | 2263 | return -EINVAL; |
2264 | } | 2264 | } |
2265 | 2265 | ||
2266 | regshift = get_property(np, "reg-shift", &proplen); | 2266 | regshift = of_get_property(np, "reg-shift", &proplen); |
2267 | if (regshift && proplen != 4) { | 2267 | if (regshift && proplen != 4) { |
2268 | dev_warn(&dev->dev, PFX "invalid regshift from OF\n"); | 2268 | dev_warn(&dev->dev, PFX "invalid regshift from OF\n"); |
2269 | return -EINVAL; | 2269 | return -EINVAL; |