From patchwork Mon Dec 9 08:14:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sonic Zhang X-Patchwork-Id: 298955 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 8ED4D2C007B for ; Mon, 9 Dec 2013 19:15:24 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A13594B4E8; Mon, 9 Dec 2013 09:15:22 +0100 (CET) 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 VgWJxi896IyR; Mon, 9 Dec 2013 09:15:22 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7D34B4BB78; Mon, 9 Dec 2013 09:14:58 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3D9FC4BB77 for ; Mon, 9 Dec 2013 09:14:51 +0100 (CET) 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 Wye+UY2HeEbu for ; Mon, 9 Dec 2013 09:14:46 +0100 (CET) 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-pb0-f54.google.com (mail-pb0-f54.google.com [209.85.160.54]) by theia.denx.de (Postfix) with ESMTPS id 13D004BB69 for ; Mon, 9 Dec 2013 09:14:41 +0100 (CET) Received: by mail-pb0-f54.google.com with SMTP id un15so4994848pbc.27 for ; Mon, 09 Dec 2013 00:14:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=1Iiw6qd+kBZa6R4KwR92ufRFTapvqtzwoF3vDUCGVGo=; b=vX345rKefchTn2/jkNkkv/waHfwBl6U0vH3v6us1RsxQIy8YtAFmoDT5fQ6VEwgzjK wV1y4ntcuKCu8J37yUjh5Qt9vn2v2PHv7fHXnSPUBMfMVezJERzlJJ/w61nwYOvnVd3E w+3OnRAFPiGHO7Lr0KnSWT92agxiUPSxVpaAdTV3Fu3wieGTwUfObobR3/aEcjqZREet cGWQ0fGiQs7dEKo+EBngdLx6drbfX1nUx1Mml05r0rWCSqrxdCxnV5NSHdLSP504IuAo RJKVxgMtaRoXw9pTKfBNiGL1OKf7DPpIJTcNFs768t2p2o+MryYbVXu9l/PQYDlpKadP uWdw== X-Received: by 10.66.27.177 with SMTP id u17mr19072674pag.25.1386576879973; Mon, 09 Dec 2013 00:14:39 -0800 (PST) Received: from localhost.localdomain ([114.91.244.100]) by mx.google.com with ESMTPSA id rz6sm22489674pab.22.2013.12.09.00.14.36 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Dec 2013 00:14:39 -0800 (PST) From: Sonic Zhang To: u-boot@lists.denx.de Date: Mon, 9 Dec 2013 16:14:09 +0800 Message-Id: <1386576850-28494-5-git-send-email-sonic.adi@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1386576850-28494-1-git-send-email-sonic.adi@gmail.com> References: <1386576850-28494-1-git-send-email-sonic.adi@gmail.com> Cc: Sonic Zhang , adi-u-boot-devel@lists.sourceforge.net Subject: [U-Boot] [PATCH 5/6] blackfin: fixing warning by including proper headers 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 From: Sonic Zhang Signed-off-by: Sonic Zhang --- arch/blackfin/lib/board.c | 1 + arch/blackfin/lib/clocks.c | 5 ++++- board/bf609-ezkit/bf609-ezkit.c | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/arch/blackfin/lib/board.c b/arch/blackfin/lib/board.c index 17d1f46..392d72d 100644 --- a/arch/blackfin/lib/board.c +++ b/arch/blackfin/lib/board.c @@ -19,6 +19,7 @@ #include #include #include +#include #include #include diff --git a/arch/blackfin/lib/clocks.c b/arch/blackfin/lib/clocks.c index 97795e1..7ed56a7 100644 --- a/arch/blackfin/lib/clocks.c +++ b/arch/blackfin/lib/clocks.c @@ -36,7 +36,10 @@ u_long get_vco(void) u_long get_cclk(void) { static u_long cached_cclk_pll_div, cached_cclk; - u_long div, csel, ssel; + u_long div, csel; +#ifndef CGU_DIV + u_long ssel; +#endif if (pll_is_bypassed()) return CONFIG_CLKIN_HZ; diff --git a/board/bf609-ezkit/bf609-ezkit.c b/board/bf609-ezkit/bf609-ezkit.c index 0388226..cfc64fe 100644 --- a/board/bf609-ezkit/bf609-ezkit.c +++ b/board/bf609-ezkit/bf609-ezkit.c @@ -10,6 +10,7 @@ #include #include #include +#include #include #include "soft_switch.h"