Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2264121yba; Mon, 15 Apr 2019 08:11:59 -0700 (PDT) X-Google-Smtp-Source: APXvYqxzshoDWAwzs3bkGINPd/KQtPDbIM9a7H70XueNyF6opgB1ROJs3v1BIEo2YP279nBQk9o3 X-Received: by 2002:a63:6983:: with SMTP id e125mr67185941pgc.370.1555341119705; Mon, 15 Apr 2019 08:11:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555341119; cv=none; d=google.com; s=arc-20160816; b=n61g44F6EYex5PA7gSMCYpYx6sZwDdoaTn210OPlmQYn5TOPEeQTzRcNUZNrYTUxoD hZgcM46axbsPSNc4jEbgQaNpaEtJOrUy90+E+0lC0B98JsFONPhCxfUJv0S9hTqs7esL gHbzm2Y1HBSAGYYiI+UvA02x9SX9bHAUHO1vqkYaM/hvpQneIdz5uiMCjhBu0ILK3OqC EMbqAp+/t5uvFa2JEhhyNNu1VRG2BrIjsjPMoi2+e5FOpTWwJMa1lJ5Z5Z5rg+JI4PV1 ndpBGxMsJWGTdlraGKzfT0fL9Yub2kZmTmHJ2q/sNs+GZtlGWtjjkc68yGisx4fHBlIh CpXw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=cmN+85KSZ0HLfosv7sXuS59KHtG0rlFhp3i4+9/fSM0=; b=MlyTmzN3SFxPFSTy9jTX3JlFs7xEK6eXmT8DrJ8bfFv8HIMf6RgtcPJ2TKQUy1aw4B EL0K0qPHhP/stFkO8F414fGaHhUR9Wq9xT6c3bLpSxgEe9Gyb7qVBhN9RHM/N5wOZVYt uPq9C9ObnHfIQWhTmrdjcIVzpJSc1PvxW8jN9toHugiHeamkd69R9ys0u3GlwXJJ8SvC wf5OK4IBFmaLr7IpzoKPizfmE+ZP1pyQvPLCSELsRuvfWXnGPULXg7KLtNgjUKoydX5D DHxiTAba0ZGn5JkGtrSXUU8s3mt3wPOJTbZy8g10P204GsBp5pLoiQiB85B1tEgFUTiA h3/A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a22si46167802pfc.217.2019.04.15.08.11.43; Mon, 15 Apr 2019 08:11:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727786AbfDOPJd (ORCPT + 99 others); Mon, 15 Apr 2019 11:09:33 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:51765 "EHLO relay4-d.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727717AbfDOPJ2 (ORCPT ); Mon, 15 Apr 2019 11:09:28 -0400 X-Originating-IP: 109.212.207.226 Received: from localhost (alyon-652-1-176-226.w109-212.abo.wanadoo.fr [109.212.207.226]) (Authenticated sender: alexandre.belloni@bootlin.com) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 73A43E001E; Mon, 15 Apr 2019 15:09:25 +0000 (UTC) From: Alexandre Belloni To: Daniel Lezcano Cc: Thomas Gleixner , Nicolas Ferre , Alexander Dahl , Sebastian Andrzej Siewior , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alexandre Belloni , Arnd Bergmann Subject: [PATCH v2 9/9] misc: atmel_tclib: do not probe already used TCBs Date: Mon, 15 Apr 2019 17:08:56 +0200 Message-Id: <20190415150856.9384-10-alexandre.belloni@bootlin.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190415150856.9384-1-alexandre.belloni@bootlin.com> References: <20190415150856.9384-1-alexandre.belloni@bootlin.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The TCBs that have children are using the proper DT bindings and don't need to be handled by tclib. Cc: Arnd Bergmann Signed-off-by: Alexandre Belloni --- 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