Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 56619
b: refs/heads/master
c: ccd308f
h: refs/heads/master
i:
  56617: fb43c62
  56615: 28a0c95
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed May 17, 2007
1 parent dacdf78 commit ed16d39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 60e417536bca8988d22ea1cc20a634ffa67bb2a8
refs/heads/master: ccd308f09a6636d86dbe62bab892b96711feee67
10 changes: 8 additions & 2 deletions trunk/drivers/macintosh/windfarm_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,10 @@ int wf_register_control(struct wf_control *new_ct)
new_ct->attr.attr.mode = 0644;
new_ct->attr.show = wf_show_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);

Expand Down Expand Up @@ -326,7 +329,10 @@ int wf_register_sensor(struct wf_sensor *new_sr)
new_sr->attr.attr.mode = 0444;
new_sr->attr.show = wf_show_sensor;
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);

Expand Down

0 comments on commit ed16d39

Please sign in to comment.