ddr: altera: sdram: Minor cleanup in sdram_get_rule()
authorMarek Vasut <marex@denx.de>
Sat, 1 Aug 2015 21:21:23 +0000 (23:21 +0200)
committerMarek Vasut <marex@denx.de>
Sat, 8 Aug 2015 12:14:28 +0000 (14:14 +0200)
Fix the data types and zap unnecessary type change.

Signed-off-by: Marek Vasut <marex@denx.de>
drivers/ddr/altera/sdram.c

index da7f27f056b7fd72b11101f7fc451071859fff7e..22cad88b9952b1d7bf0866c2f531b41639002bd8 100644 (file)
@@ -146,14 +146,14 @@ static void sdram_set_rule(struct sdram_prot_rule *prule)
 
 static void sdram_get_rule(struct sdram_prot_rule *prule)
 {
-       uint32_t addr;
-       uint32_t id;
-       uint32_t data;
+       u32 addr;
+       u32 id;
+       u32 data;
        int ruleno = prule->rule;
 
        /* Read the rule */
        writel(ruleno, &sdr_ctrl->prot_rule_rdwr);
-       writel(ruleno | (1L << 6), &sdr_ctrl->prot_rule_rdwr);
+       writel(ruleno | (1 << 6), &sdr_ctrl->prot_rule_rdwr);
 
        /* Get the addresses */
        addr = readl(&sdr_ctrl->prot_rule_addr);