aboutsummaryrefslogtreecommitdiff
path: root/src/northbridge/via/vx900/chrome9hd.c
diff options
context:
space:
mode:
authorAlexandru Gagniuc <mr.nuke.me@gmail.com>2013-06-10 15:47:25 -0500
committerRonald G. Minnich <rminnich@gmail.com>2013-06-10 23:11:48 +0200
commit560433b4931f30ab23f602911e3e2491a1cbfae1 (patch)
tree7d976d8e885e3183b5f89ae5f823f8a32ac27d0c /src/northbridge/via/vx900/chrome9hd.c
parent37a8a8bd9e9d37da1e899297dbb43c0033cfd6c4 (diff)
VX900: Use MIN/MAX from stdlib.h instead of redefining them
Change-Id: I2dd693b300085493baa65bb652df8d6cce80b63b Signed-off-by: Alexandru Gagniuc <mr.nuke.me@gmail.com> Reviewed-on: http://review.coreboot.org/3431 Reviewed-by: Ronald G. Minnich <rminnich@gmail.com> Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'src/northbridge/via/vx900/chrome9hd.c')
-rw-r--r--src/northbridge/via/vx900/chrome9hd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/northbridge/via/vx900/chrome9hd.c b/src/northbridge/via/vx900/chrome9hd.c
index 633328e164..55e2a9679f 100644
--- a/src/northbridge/via/vx900/chrome9hd.c
+++ b/src/northbridge/via/vx900/chrome9hd.c
@@ -23,6 +23,7 @@
#include <device/pci.h>
#include <device/pci_ids.h>
#include <pc80/vga_io.h>
+#include <stdlib.h>
#include "vx900.h"
@@ -79,7 +80,7 @@ u32 chrome9hd_fb_size(void)
size_mb = 512;
/* The minimum framebuffer size is 8MB. */
- size_mb = max(size_mb, CHROME_9_HD_MIN_FB_SIZE);
+ size_mb = MAX(size_mb, CHROME_9_HD_MIN_FB_SIZE);
const device_t mcu = dev_find_device(PCI_VENDOR_ID_VIA,
PCI_DEVICE_ID_VIA_VX900_MEMCTRL,
@@ -203,6 +204,7 @@ u8 vx900_int15_get_5f18_bl(void)
return ret;
}
+
/** @} */
static void chrome9hd_set_sid_vid(u16 vendor, u16 device)