mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
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]>
This commit is contained in:
parent
7ebe681004
commit
8c9374068e
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue