From patchwork Mon Jun 30 09:59:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vasili Galka X-Patchwork-Id: 365531 X-Patchwork-Delegate: trini@ti.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 B1A3014007C for ; Mon, 30 Jun 2014 19:59:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 434B14B813; Mon, 30 Jun 2014 11:59:46 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 TiPTNF9cEebC; Mon, 30 Jun 2014 11:59:45 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id BC0264B85E; Mon, 30 Jun 2014 11:59:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 156654B85E for ; Mon, 30 Jun 2014 11:59:40 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de 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 Et-16qClcRfu for ; Mon, 30 Jun 2014 11:59:36 +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-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by theia.denx.de (Postfix) with ESMTPS id B35204B813 for ; Mon, 30 Jun 2014 11:59:33 +0200 (CEST) Received: by mail-wi0-f177.google.com with SMTP id r20so5685396wiv.10 for ; Mon, 30 Jun 2014 02:59:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=MewuHJZFC8RZltbU1J7iyH70kXKNyrfAkiBl3XuNbrU=; b=yDH10r8byvQRGSDF93dbpNYBSPMEWHbDNN6nHdKxcbS29BHiADwStTzzy6xwK+cr1l iLmpl6y4zdDP9ugVEVV+hYng/58ACdaExdiEk2/WFih4s2eBsF1qQKEe4yZIK+b/zSuK CJl78Kkgijg1JDluXw7rR8iMijPMOGyi10vPV+XeLfuo0BfXRsjxU16NGCzYNqs8LlzH 2+hU9MZBM94g/50boSxQOGJa1XNwHabO/ISkrhJHNuaCOYtwk7rSHx0Jq57J7YxEGJrN oiImkG2W6EsEZIrtOMOGE+u1NE9VrOADvNRaNB4opzU/EDCGyLmV9NoEmrBLAKWmePea rJNg== X-Received: by 10.180.82.166 with SMTP id j6mr27707616wiy.71.1404122372504; Mon, 30 Jun 2014 02:59:32 -0700 (PDT) Received: from vasili.visionmap.co.il (vpn.visionmap.com. [82.80.119.226]) by mx.google.com with ESMTPSA id r9sm29569690wia.17.2014.06.30.02.59.30 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 30 Jun 2014 02:59:31 -0700 (PDT) From: Vasili Galka To: u-boot@lists.denx.de Date: Mon, 30 Jun 2014 12:59:06 +0300 Message-Id: <1404122346-4556-1-git-send-email-vvv444@gmail.com> X-Mailer: git-send-email 1.7.9 Cc: Vasili Galka , Jason Jin Subject: [U-Boot] [PATCH] m68k: Fix bug, "address of" operator was forgotten X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de in_be16() shall be passed a pointer to register and not its value. This is clearly a typo resulting in a wrong memory access, so fix it. Cc: Alison Wang , Jason Jin Signed-off-by: Vasili Galka --- arch/m68k/cpu/mcf5445x/speed.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/m68k/cpu/mcf5445x/speed.c b/arch/m68k/cpu/mcf5445x/speed.c index 07a9b35..4e363a4 100644 --- a/arch/m68k/cpu/mcf5445x/speed.c +++ b/arch/m68k/cpu/mcf5445x/speed.c @@ -115,7 +115,7 @@ void setup_5441x_clocks(void) gd->cpu_clk = vco / temp; /* cpu clock */ gd->arch.flb_clk = vco / temp; /* FlexBus clock */ gd->arch.flb_clk >>= 1; - if (in_be16(ccm->misccr2) & 2) /* fsys/4 */ + if (in_be16(&ccm->misccr2) & 2) /* fsys/4 */ gd->arch.flb_clk >>= 1; temp = ((pdr & PLL_DR_OUTDIV2_BITS) >> 5) + 1;