From: Thierry Reding Date: Thu, 4 Aug 2011 07:14:06 +0000 (-0300) Subject: [media] tm6000: Flesh out the IRQ callback X-Git-Tag: MMI-PSA29.97-13-9~18177^2~296 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14f0915464f91574652afa95850e642abd205adc;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [media] tm6000: Flesh out the IRQ callback This brings the IRQ callback implementation more in line with how other drivers do it. Signed-off-by: Thierry Reding Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index ba9cd2470174..bef6023424af 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c @@ -513,9 +513,21 @@ static void tm6000_irq_callback(struct urb *urb) struct tm6000_core *dev = container_of(dma_q, struct tm6000_core, vidq); int i; - if (!dev) + switch (urb->status) { + case 0: + case -ETIMEDOUT: + break; + + case -ECONNRESET: + case -ENOENT: + case -ESHUTDOWN: return; + default: + tm6000_err("urb completion error %d.\n", urb->status); + break; + } + spin_lock(&dev->slock); tm6000_isoc_copy(urb); spin_unlock(&dev->slock);