Skip to content

Commit

Permalink
powerpc/windfarm: fix compiler warning
Browse files Browse the repository at this point in the history
Fixes this warning:

drivers/macintosh/windfarm_pm91.c: In function 'wf_smu_cpu_fans_tick':
drivers/macintosh/windfarm_pm91.c:237:2: warning: passing argument 1 of 'wf_sensor_get' from incompatible pointer type
drivers/macintosh/windfarm.h:124:19: note: expected 'struct wf_sensor *' but argument is of type 'struct wf_sensor **'

Introduced by commit 33e6820 ("powerpc/windfarm: Add useful
accessors").

Signed-off-by: Stephen Rothwell <[email protected]>
Signed-off-by: Benjamin Herrenschmidt <[email protected]>
  • Loading branch information
sfrothwell authored and ozbenh committed May 3, 2012
1 parent ec34a68 commit ca7d593
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/macintosh/windfarm_pm91.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ static void wf_smu_cpu_fans_tick(struct wf_smu_cpu_fans_state *st)
return;
}

rc = wf_sensor_get(&sensor_cpu_power, &power);
rc = wf_sensor_get(sensor_cpu_power, &power);
if (rc) {
printk(KERN_WARNING "windfarm: CPU power sensor error %d\n",
rc);
Expand Down

0 comments on commit ca7d593

Please sign in to comment.