From: Devendra Naga <develkernel412222@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Zhang Rui <rui.zhang@intel.com>,
Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
linux-kernel@vger.kernel.org
Cc: Devendra Naga <develkernel412222@gmail.com>
Subject: [PATCH] thermal: solve compilation errors in rcar_thermal
Date: Tue, 21 Aug 2012 22:01:36 +0530 [thread overview]
Message-ID: <1345566696-21164-1-git-send-email-develkernel412222@gmail.com> (raw)
following were the errors reported
drivers/thermal/rcar_thermal.c: In function ‘rcar_thermal_probe’:
drivers/thermal/rcar_thermal.c:214:10: warning: passing argument 3 of ‘thermal_zone_device_register’ makes integer from pointer without a cast [enabled by default]
include/linux/thermal.h:166:29: note: expected ‘int’ but argument is of type ‘struct rcar_thermal_priv *’
drivers/thermal/rcar_thermal.c:214:10: error: too few arguments to function ‘thermal_zone_device_register’
include/linux/thermal.h:166:29: note: declared here
make[1]: *** [drivers/thermal/rcar_thermal.o] Error 1
make: *** [drivers/thermal/rcar_thermal.o] Error 2
with gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
Signed-off-by: Devendra Naga <develkernel412222@gmail.com>
---
drivers/thermal/rcar_thermal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
index d445271..f7a1b57 100644
--- a/drivers/thermal/rcar_thermal.c
+++ b/drivers/thermal/rcar_thermal.c
@@ -210,7 +210,7 @@ static int rcar_thermal_probe(struct platform_device *pdev)
goto error_free_priv;
}
- zone = thermal_zone_device_register("rcar_thermal", 0, priv,
+ zone = thermal_zone_device_register("rcar_thermal", 0, 0, priv,
&rcar_thermal_zone_ops, 0, 0);
if (IS_ERR(zone)) {
dev_err(&pdev->dev, "thermal zone device is NULL\n");
--
1.7.9.5
next reply other threads:[~2012-08-21 16:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-21 16:31 Devendra Naga [this message]
2012-08-28 1:05 ` [PATCH] thermal: solve compilation errors in rcar_thermal Kuninori Morimoto
2012-10-03 6:51 ` [PATCH] thermal: rcar_thermal: remove explicitly used devm_kfree/iounap() Kuninori Morimoto
2012-11-07 3:32 ` Zhang Rui
2012-10-09 8:14 ` [PATCH] thermal: rcar: fixup compilation errors Kuninori Morimoto
2012-11-07 3:34 ` Zhang Rui
2012-10-31 3:21 ` [PATCH] thermal: solve compilation errors in rcar_thermal Kuninori Morimoto
2012-10-31 6:24 ` Zhang, Rui
2012-10-31 8:46 ` Kuninori Morimoto
2012-11-01 2:17 ` Zhang, Rui
2012-11-01 2:29 ` Fengguang Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1345566696-21164-1-git-send-email-develkernel412222@gmail.com \
--to=develkernel412222@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=kuninori.morimoto.gx@renesas.com \
--cc=linux-kernel@vger.kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.