usb, musb-new: add wdt trigger

Signed-off-by: Heiko Schocher <hs@denx.de>
Cc: Marek Vasut <marek.vasut@gmail.com>
Cc: Ilya Yanok <ilya.yanok@cogentembedded.com>
This commit is contained in:
Heiko Schocher 2013-06-04 11:10:01 +02:00 committed by Marek Vasut
parent c5398cc968
commit 7a34278542

View File

@ -1,4 +1,5 @@
#include <common.h>
#include <watchdog.h>
#include <asm/errno.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>
@ -164,6 +165,7 @@ static struct musb *gadget;
int usb_gadget_handle_interrupts(void)
{
WATCHDOG_RESET();
if (!gadget || !gadget->isr)
return -EINVAL;