aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>2013-06-03 16:16:05 -0400
committerTejun Heo <tj@kernel.org>2013-06-03 21:49:45 -0400
commit5ba59b59cb413b9d89f40532bad3529d5185dd3c (patch)
treed2d990cbda07fddc69e82a20b8d9a4cb4c0706b9 /drivers
parentddfef5de3d716f77bad32dbbba6b280158dfd721 (diff)
sata_rcar: fix compilation warning in sata_rcar_thaw()
When compiling the driver with gcc 4.8, it gives the following warning: drivers/ata/sata_rcar.c: In function `sata_rcar_thaw': drivers/ata/sata_rcar.c:183:2: warning: large integer implicitly truncated to unsigned type [-Woverflow] Fix the warning by explicit cast of the 'unsigned long' value to 'u32'. Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/sata_rcar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c
index 249c8a289bfd..d51423463479 100644
--- a/drivers/ata/sata_rcar.c
+++ b/drivers/ata/sata_rcar.c
@@ -180,7 +180,7 @@ static void sata_rcar_thaw(struct ata_port *ap)
180 struct sata_rcar_priv *priv = ap->host->private_data; 180 struct sata_rcar_priv *priv = ap->host->private_data;
181 181
182 /* ack */ 182 /* ack */
183 iowrite32(~SATA_RCAR_INT_MASK, priv->base + SATAINTSTAT_REG); 183 iowrite32(~(u32)SATA_RCAR_INT_MASK, priv->base + SATAINTSTAT_REG);
184 184
185 ata_sff_thaw(ap); 185 ata_sff_thaw(ap);
186 186