Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 81250
b: refs/heads/master
c: 98894df
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Jan 17, 2008
1 parent a13eb31 commit 3493894
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 85e99b9fffb62e101e38c74c935256fc589703c2
refs/heads/master: 98894dffaf11981ac9dc33c818ecafcb02a5439b
8 changes: 6 additions & 2 deletions trunk/drivers/macintosh/therm_windtunnel.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ static void
setup_hardware( void )
{
int val;
int err;

/* save registers (if we unload the module) */
x.r0 = read_reg( x.fan, 0x00, 1 );
Expand Down Expand Up @@ -265,8 +266,11 @@ setup_hardware( void )
x.upind = -1;
/* tune_fan( fan_up_table[x.upind].fan_setting ); */

device_create_file( &x.of_dev->dev, &dev_attr_cpu_temperature );
device_create_file( &x.of_dev->dev, &dev_attr_case_temperature );
err = device_create_file( &x.of_dev->dev, &dev_attr_cpu_temperature );
err |= device_create_file( &x.of_dev->dev, &dev_attr_case_temperature );
if (err)
printk(KERN_WARNING
"Failed to create temperature attribute file(s).\n");
}

static void
Expand Down

0 comments on commit 3493894

Please sign in to comment.