From patchwork Sat Aug 1 21:34:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 502871 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id EA12214029E for ; Sun, 2 Aug 2015 07:38:43 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 79C414BD37; Sat, 1 Aug 2015 23:37:36 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XS2j5wMt6U9y; Sat, 1 Aug 2015 23:37:36 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0DE9A4BE1B; Sat, 1 Aug 2015 23:36:20 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AED114BD4B for ; Sat, 1 Aug 2015 23:35:28 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id UgU7XGQI5Zj9 for ; Sat, 1 Aug 2015 23:35:28 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-out.m-online.net (mail-out.m-online.net [212.18.0.9]) by theia.denx.de (Postfix) with ESMTPS id 4ECFE4BD1D for ; Sat, 1 Aug 2015 23:35:21 +0200 (CEST) Received: from mail.nefkom.net (unknown [192.168.8.184]) by mail-out.m-online.net (Postfix) with ESMTP id 3mkJfx0trHz3hjBH; Sat, 1 Aug 2015 23:35:21 +0200 (CEST) X-Auth-Info: X3tEVtw87UxdKu9TmWW580fg2j9ZCCJKTE2BL9nsMOo= Received: from chi.lan (host-82-135-33-74.customer.m-online.net [82.135.33.74]) by smtp-auth.mnet-online.de (Postfix) with ESMTPA id 3mkJfw64xgzvdWt; Sat, 1 Aug 2015 23:35:20 +0200 (CEST) From: Marek Vasut To: u-boot@lists.denx.de Date: Sat, 1 Aug 2015 23:34:56 +0200 Message-Id: <1438464897-8051-28-git-send-email-marex@denx.de> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1438464897-8051-1-git-send-email-marex@denx.de> References: <1438464897-8051-1-git-send-email-marex@denx.de> Cc: Marek Vasut , trini@konsulko.com Subject: [U-Boot] [PATCH 27/28] ddr: altera: sdram: Minor cleanup in sdram_get_rule() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Fix the data types and zap unnecessary type change. Signed-off-by: Marek Vasut --- drivers/ddr/altera/sdram.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/ddr/altera/sdram.c b/drivers/ddr/altera/sdram.c index da7f27f..22cad88 100644 --- a/drivers/ddr/altera/sdram.c +++ b/drivers/ddr/altera/sdram.c @@ -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);