Patchwork powerpc/windfarm: fix compiler warning

login
register
mail settings
Submitter Stephen Rothwell
Date May 3, 2012, 4:34 a.m.
Message ID <20120503143452.4231b1cc17101df8e0772b95@canb.auug.org.au>
Download mbox | patch
Permalink /patch/156605/
State Accepted, archived
Commit ca7d593e0ac8cf806aa750815daf12594345f5f6
Headers show

Comments

Stephen Rothwell - May 3, 2012, 4:34 a.m.
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 33e6820b767a ("powerpc/windfarm: Add useful
accessors").

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
---
 drivers/macintosh/windfarm_pm91.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/drivers/macintosh/windfarm_pm91.c b/drivers/macintosh/windfarm_pm91.c
index e18002b..7653603 100644
--- a/drivers/macintosh/windfarm_pm91.c
+++ b/drivers/macintosh/windfarm_pm91.c
@@ -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);