Skip to content

Commit

Permalink
misc: atmel_tclib: Do not probe already used TCBs
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alexandre Belloni authored and Daniel Lezcano committed May 2, 2019
1 parent 7ebe681 commit 8c93740
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/misc/atmel_tclib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8c93740

Please sign in to comment.