Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8c937406 authored by Alexandre Belloni's avatar Alexandre Belloni Committed by Daniel Lezcano
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
parent 7ebe6810
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;