From 56394484e3b46d234ec504dc23114b9cf8c67778 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Tue, 25 May 2010 16:02:28 +0000 Subject: Fix usbdebug compilation. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5585 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/lib/usbdebug_direct.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/lib') diff --git a/src/lib/usbdebug_direct.c b/src/lib/usbdebug_direct.c index d2e46729d1..19ce15086f 100644 --- a/src/lib/usbdebug_direct.c +++ b/src/lib/usbdebug_direct.c @@ -342,9 +342,9 @@ static int ehci_wait_for_port(struct ehci_regs *ehci_regs, int port) #define DBGP_DEBUG 1 #if DBGP_DEBUG -# define dbgp_printk(fmt, arg...) printk(BIOS_DEBUG, fmt, arg) +# define dbgp_printk(fmt_arg...) printk(BIOS_DEBUG, fmt_arg) #else -#define dbgp_printk(fmt, arg...) do {} while(0) +#define dbgp_printk(fmt_arg...) do {} while(0) #endif static void usbdebug_direct_init(unsigned ehci_bar, unsigned offset, struct ehci_debug_info *info) { @@ -531,7 +531,7 @@ err: /* Things didn't work so remove my claim */ ctrl = read32(&ehci_debug->control); ctrl &= ~(DBGP_CLAIM | DBGP_OUT); - write32(&ehci_debug->control, ctrl); + write32((unsigned long)&ehci_debug->control, ctrl); next_debug_port: port_map_tried |= (1<<(debug_port-1)); -- cgit v1.2.3