Commit ccd308f0 authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Paul Mackerras

[POWERPC] Remove build warnings in windfarm_core

drivers/macintosh/windfarm_core.c: In function 'wf_register_control':
drivers/macintosh/windfarm_core.c:219: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
drivers/macintosh/windfarm_core.c: In function 'wf_register_sensor':
drivers/macintosh/windfarm_core.c:329: warning: ignoring return value of 'device_create_file', declared with attribute warn_unused_result
Signed-off-by: default avatarStephen Rothwell <sfr@canb.auug.org.au>
Acked-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent 60e41753
...@@ -216,7 +216,10 @@ int wf_register_control(struct wf_control *new_ct) ...@@ -216,7 +216,10 @@ int wf_register_control(struct wf_control *new_ct)
new_ct->attr.attr.mode = 0644; new_ct->attr.attr.mode = 0644;
new_ct->attr.show = wf_show_control; new_ct->attr.show = wf_show_control;
new_ct->attr.store = wf_store_control; new_ct->attr.store = wf_store_control;
device_create_file(&wf_platform_device.dev, &new_ct->attr); if (device_create_file(&wf_platform_device.dev, &new_ct->attr))
printk(KERN_WARNING "windfarm: device_create_file failed"
" for %s\n", new_ct->name);
/* the subsystem still does useful work without the file */
DBG("wf: Registered control %s\n", new_ct->name); DBG("wf: Registered control %s\n", new_ct->name);
...@@ -326,7 +329,10 @@ int wf_register_sensor(struct wf_sensor *new_sr) ...@@ -326,7 +329,10 @@ int wf_register_sensor(struct wf_sensor *new_sr)
new_sr->attr.attr.mode = 0444; new_sr->attr.attr.mode = 0444;
new_sr->attr.show = wf_show_sensor; new_sr->attr.show = wf_show_sensor;
new_sr->attr.store = NULL; new_sr->attr.store = NULL;
device_create_file(&wf_platform_device.dev, &new_sr->attr); if (device_create_file(&wf_platform_device.dev, &new_sr->attr))
printk(KERN_WARNING "windfarm: device_create_file failed"
" for %s\n", new_sr->name);
/* the subsystem still does useful work without the file */
DBG("wf: Registered sensor %s\n", new_sr->name); DBG("wf: Registered sensor %s\n", new_sr->name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment