misc: atmel_tclib: Do not probe already used TCBs

The TCBs that have children are using the proper DT bindings and don't need
to be handled by tclib.

Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
This commit is contained in:
Alexandre Belloni 2019-04-26 23:47:18 +02:00 committed by Daniel Lezcano
parent 7ebe681004
commit 8c9374068e

View File

@ -111,6 +111,9 @@ static int __init tc_probe(struct platform_device *pdev)
struct resource *r;
unsigned int i;
if (of_get_child_count(pdev->dev.of_node))
return -EBUSY;
irq = platform_get_irq(pdev, 0);
if (irq < 0)
return -EINVAL;