Name

of_irq_to_resource — Decode a node's IRQ and return it as a resource

Synopsis

int of_irq_to_resource (struct device_node * dev,
 int index,
 struct resource * r);
 

Arguments

dev

Pointer to node of device whose interrupt is to be resolved

index

Zero-based index of the irq

r

Pointer used to return result into

Description

Decode a node's IRQ and return it as a resource.

If dev contains property interrupt-names the resource name will be from the property, otherwise the resource name will be the full name of node dev.

Return

Linux irq number on success, 0 on error.