Title: [7760] trunk/arch/blackfin/mach-bf537/boards/stamp.c: Since kernel already has macro "max", use it instead of declaring MAX
- Revision
- 7760
- Author
- sonicz
- Date
- 2009-11-05 22:17:59 -0500 (Thu, 05 Nov 2009)
Log Message
Since kernel already has macro "max", use it instead of declaring MAX
>From Thiago Farina <[email protected]>
Modified Paths
Diff
Modified: trunk/arch/blackfin/mach-bf537/boards/stamp.c (7759 => 7760)
--- trunk/arch/blackfin/mach-bf537/boards/stamp.c 2009-11-05 15:44:44 UTC (rev 7759)
+++ trunk/arch/blackfin/mach-bf537/boards/stamp.c 2009-11-06 03:17:59 UTC (rev 7760)
@@ -425,10 +425,9 @@
},
};
-#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,
};
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits