Messages in this thread Patch in this message | | | From | Alexandre Belloni <> | Subject | [PATCH v2 9/9] misc: atmel_tclib: do not probe already used TCBs | Date | Mon, 15 Apr 2019 17:08:56 +0200 |
| |
The TCBs that have children are using the proper DT bindings and don't need to be handled by tclib.
Cc: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> --- drivers/misc/atmel_tclib.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/drivers/misc/atmel_tclib.c b/drivers/misc/atmel_tclib.c index 194f774ab3a1..c1f5aba1c6f2 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 0; + irq = platform_get_irq(pdev, 0); if (irq < 0) return -EINVAL; -- 2.20.1
| |