diff options
-rw-r--r-- | drivers/misc/atmel_tclib.c | 3 |
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) | |||
111 | struct resource *r; | 111 | struct resource *r; |
112 | unsigned int i; | 112 | unsigned int i; |
113 | 113 | ||
114 | if (of_get_child_count(pdev->dev.of_node)) | ||
115 | return -EBUSY; | ||
116 | |||
114 | irq = platform_get_irq(pdev, 0); | 117 | irq = platform_get_irq(pdev, 0); |
115 | if (irq < 0) | 118 | if (irq < 0) |
116 | return -EINVAL; | 119 | return -EINVAL; |