mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] blackfin/trivial: remove duplicated MAX macro from stamp.
@ 2009-11-02 21:04 Thiago Farina
  2009-11-05 17:01 ` Thiago Farina
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Thiago Farina @ 2009-11-02 21:04 UTC (permalink / raw)
  To: trivial
  Cc: vapier, cooloney, michael.hennerich, barry.song, yi.li,
	uclinux-dist-devel, linux-kernel, Thiago Farina

Since the kernel api already has the macro "max",
just use it instead of declaring another one.

Signed-off-by: Thiago Farina <tfransosi@gmail.com>
---
 arch/blackfin/mach-bf537/boards/stamp.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
index c46baa5..c76da37 100644
--- a/arch/blackfin/mach-bf537/boards/stamp.c
+++ b/arch/blackfin/mach-bf537/boards/stamp.c
@@ -385,10 +385,9 @@ static struct platform_nand_data bfin_plat_nand_data = {
 	},
 };
 
-#define MAX(x, y) (x > y ? x : y)
 static struct resource bfin_plat_nand_resources = {
 	.start = 0x20212000,
-	.end   = 0x20212000 + (1 << MAX(BFIN_NAND_PLAT_CLE, BFIN_NAND_PLAT_ALE)),
+	.end   = 0x20212000 + (1 << max(BFIN_NAND_PLAT_CLE, BFIN_NAND_PLAT_ALE)),
 	.flags = IORESOURCE_IO,
 };
 
-- 
1.6.5.1.61.ge79999


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-11-15  2:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-11-02 21:04 [PATCH] blackfin/trivial: remove duplicated MAX macro from stamp Thiago Farina
2009-11-05 17:01 ` Thiago Farina
2009-11-06  3:17 ` [Uclinux-dist-devel] [PATCH] blackfin/trivial: remove duplicatedMAX " Zhang, Sonic
2009-11-08 13:38   ` Thiago Farina
2009-11-08 13:57     ` Mike Frysinger
2009-11-15  2:52 ` [PATCH] blackfin/trivial: remove duplicated MAX " Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®