From patchwork Tue Nov 4 11:26:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 406523 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 0403C14009E for ; Tue, 4 Nov 2014 22:27:31 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 24AA74B8A2; Tue, 4 Nov 2014 12:27:27 +0100 (CET) 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 hC76ITzK33Bc; Tue, 4 Nov 2014 12:27:26 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ABFE44B8B0; Tue, 4 Nov 2014 12:27:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CE1C04B8A2 for ; Tue, 4 Nov 2014 12:27:23 +0100 (CET) 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 EhmsQ1piX41v for ; Tue, 4 Nov 2014 12:27:23 +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 smtp.mei.co.jp (smtp.mei.co.jp [133.183.100.20]) by theia.denx.de (Postfix) with ESMTP id 2C8C34B890 for ; Tue, 4 Nov 2014 12:27:19 +0100 (CET) Received: from mail-gw.jp.panasonic.com ([157.8.1.157]) by smtp.mei.co.jp (8.12.11.20060614/3.7W/kc-maile12) with ESMTP id sA4BR2r8010573; Tue, 4 Nov 2014 20:27:02 +0900 (JST) Received: from epochmail.jp.panasonic.com ([157.8.1.130]) by mail.jp.panasonic.com (8.11.6p2/3.7W/kc-maili13) with ESMTP id sA4BR3J27608; Tue, 4 Nov 2014 20:27:03 +0900 Received: by epochmail.jp.panasonic.com (8.12.11.20060308/3.7W/lomi14) id sA4BR3rE023663; Tue, 4 Nov 2014 20:27:03 +0900 Received: from poodle by lomi14.jp.panasonic.com (8.12.11.20060308/3.7W) with ESMTP id sA4BR3WZ023628; Tue, 4 Nov 2014 20:27:03 +0900 Received: from beagle.diag.org (beagle.diag.org [10.184.179.16]) by poodle (Postfix) with ESMTP id 1D9EE2743A5D; Tue, 4 Nov 2014 20:27:03 +0900 (JST) From: Masahiro Yamada To: u-boot@lists.denx.de Date: Tue, 4 Nov 2014 20:26:22 +0900 Message-Id: <1415100418-29016-3-git-send-email-yamada.m@jp.panasonic.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1415100418-29016-1-git-send-email-yamada.m@jp.panasonic.com> References: <1415100418-29016-1-git-send-email-yamada.m@jp.panasonic.com> Cc: Marek Vasut , Przemyslaw Marczak , York Sun , Soren Brinkmann Subject: [U-Boot] [PATCH 2/6] include/common.h: remove DIV_ROUND definition X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.13 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 All the references of DIV_ROUND have been replaced with DIV_ROUND_CLOSEST. Remove DIV_ROUND. Signed-off-by: Masahiro Yamada --- include/common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/common.h b/include/common.h index ecf7fca..c9fe386 100644 --- a/include/common.h +++ b/include/common.h @@ -950,7 +950,6 @@ static inline phys_addr_t map_to_sysmem(const void *ptr) #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) #define ROUND(a,b) (((a) + (b) - 1) & ~((b) - 1)) -#define DIV_ROUND(n,d) (((n) + ((d)/2)) / (d)) #define DIV_ROUND_UP(n,d) (((n) + (d) - 1) / (d)) #define roundup(x, y) ((((x) + ((y) - 1)) / (y)) * (y))