From: s.trumtrar@pengutronix.de (Steffen Trumtrar)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V2 3/4] ARM: socfpga: clk: fix compile error
Date: Wed, 18 Dec 2013 18:03:01 +0100 [thread overview]
Message-ID: <1387386182-30923-4-git-send-email-s.trumtrar@pengutronix.de> (raw)
In-Reply-To: <1387386182-30923-1-git-send-email-s.trumtrar@pengutronix.de>
Fix the following compile error:
drivers/clk/socfpga/clk-gate.c:118:27: error: invalid operands to binary & (have 'void *' and 'int')
introduced by:
clk: socfpga: Look for the GPIO_DB_CLK by its offset
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
---
drivers/clk/socfpga/clk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clk/socfpga/clk.c b/drivers/clk/socfpga/clk.c
index f140ece..e1284fb 100644
--- a/drivers/clk/socfpga/clk.c
+++ b/drivers/clk/socfpga/clk.c
@@ -244,7 +244,7 @@ static unsigned long socfpga_clk_recalc_rate(struct clk_hw *hwclk,
val = readl(socfpgaclk->div_reg) >> socfpgaclk->shift;
val &= div_mask(socfpgaclk->width);
/* Check for GPIO_DB_CLK by its offset */
- if (socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET)
+ if ((int) socfpgaclk->div_reg & SOCFPGA_GPIO_DB_CLK_OFFSET)
div = val + 1;
else
div = (1 << val);
--
1.8.5.1
next prev parent reply other threads:[~2013-12-18 17:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-18 17:02 [PATCH V2 0/4] socfpga: clk: trivial fixes and cleanup Steffen Trumtrar
2013-12-18 17:02 ` [PATCH V2 1/4] ARM: socfpga: clk: remove unused field Steffen Trumtrar
2013-12-18 17:03 ` [PATCH V2 2/4] ARM: socfpga: clk: fix define typo Steffen Trumtrar
2013-12-18 17:03 ` Steffen Trumtrar [this message]
2013-12-18 17:03 ` [PATCH V2 4/4] ARM: socfpga: clk: split clk code Steffen Trumtrar
2013-12-18 22:56 ` [PATCH V2 0/4] socfpga: clk: trivial fixes and cleanup Mike Turquette
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=1387386182-30923-4-git-send-email-s.trumtrar@pengutronix.de \
--to=s.trumtrar@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).