summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorAlexandre Belloni <alexandre.belloni@bootlin.com>2019-04-26 23:47:18 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2019-05-02 21:55:58 +0200
commit8c9374068ef6dc3fdf244484b4711a6e10c84d1a (patch)
tree3f11930376131fd86fe5390ab7e32c38ca5658f6 /drivers/misc
parentclocksource/drivers/timer-atmel-tcb: Convert tc_clksrc_suspend|resume() to st... (diff)
downloadlinux-8c9374068ef6dc3fdf244484b4711a6e10c84d1a.tar.xz
linux-8c9374068ef6dc3fdf244484b4711a6e10c84d1a.zip
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/atmel_tclib.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/misc/atmel_tclib.c b/drivers/misc/atmel_tclib.c
index 194f774ab3a1..2c6850ef0e9c 100644
--- a/drivers/misc/atmel_tclib.c
+++ b/drivers/misc/atmel_tclib.c
@@ -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;