Skip to content

Commit 8c93740

Browse files
alexandrebellonidlezcano
authored andcommitted
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 <[email protected]> Signed-off-by: Alexandre Belloni <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]>
1 parent 7ebe681 commit 8c93740

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/misc/atmel_tclib.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ static int __init tc_probe(struct platform_device *pdev)
111111
struct resource *r;
112112
unsigned int i;
113113

114+
if (of_get_child_count(pdev->dev.of_node))
115+
return -EBUSY;
116+
114117
irq = platform_get_irq(pdev, 0);
115118
if (irq < 0)
116119
return -EINVAL;

0 commit comments

Comments
 (0)