not all tahvo children have a dedicated IRQ so don't add a resource for those. Signed-off-by: Felipe Balbi <balbi@xxxxxx> --- drivers/cbus/tahvo.c | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/drivers/cbus/tahvo.c b/drivers/cbus/tahvo.c index 43f6d6a..1540042 100644 --- a/drivers/cbus/tahvo.c +++ b/drivers/cbus/tahvo.c @@ -266,13 +266,15 @@ static struct device *tahvo_allocate_child(const char *name, pdev->dev.parent = parent; - generic_resources[0].start = irq; - - ret = platform_device_add_resources(pdev, - generic_resources, ARRAY_SIZE(generic_resources)); - if (ret < 0) { - dev_dbg(parent, "can't add resources to %s\n", name); - goto err1; + if (irq > 0) { + generic_resources[0].start = irq; + + ret = platform_device_add_resources(pdev, generic_resources, + ARRAY_SIZE(generic_resources)); + if (ret < 0) { + dev_dbg(parent, "can't add resources to %s\n", name); + goto err1; + } } ret = platform_device_add(pdev); -- 1.7.6.396.ge0613 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html