mirror of
https://github.com/genesi/linux-legacy.git
synced 2026-07-08 17:56:11 +00:00
sbs: ensure that we have an IRQ resource
This commit is contained in:
@@ -658,6 +658,8 @@ static int sbs_request_irqs(struct sbs_battery * const batt)
|
||||
if (!request->irq)
|
||||
continue;
|
||||
|
||||
BUG_ON(~request->irq->flags & IORESOURCE_IRQ);
|
||||
|
||||
ret = request_irq(request->irq->start, request->handler,
|
||||
__irq_flags(request->irq),
|
||||
request->irq->name,
|
||||
|
||||
Reference in New Issue
Block a user