Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755947Ab3CYKNn (ORCPT ); Mon, 25 Mar 2013 06:13:43 -0400 Received: from mailout3.samsung.com ([203.254.224.33]:58555 "EHLO mailout3.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754986Ab3CYKNk (ORCPT ); Mon, 25 Mar 2013 06:13:40 -0400 X-AuditID: cbfee690-b7f656d0000007e3-ec-515023462cfc From: Kukjin Kim To: "'Axel Lin'" Cc: "'Thomas Gleixner'" , "'John Stultz'" , "'Thomas Abraham'" , "'Changhwan Youn'" , linux-kernel@vger.kernel.org References: <1364048887.13141.0.camel@phoenix> <16f801ce28f5$b9095c20$2b1c1460$%kim@samsung.com> In-reply-to: Subject: RE: [PATCH] clocksource: exynos_mct: Add terminating entry for exynos_mct_ids table Date: Mon, 25 Mar 2013 19:13:26 +0900 Message-id: <177901ce2941$63c85710$2b590530$%kim@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Thread-index: Ac4o9q4zcsaogIcPS6eqcVUkCjj7IgASmcRw Content-language: ko X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNIsWRmVeSWpSXmKPExsVy+t8zA1035YBAg77ZshZH5nxltmhvULQ4 81vX4vKuOWwWmzdNZbY4NmMJowObR9vPMo871/awebw7d47do2/LKkaPz5vkAlijuGxSUnMy y1KL9O0SuDKe/3UoaOWuOPvoL1MD42uOLkZODgkBE4kfC58yQdhiEhfurWfrYuTiEBJYxihx b9YCRpiiP20XoRKLGCWO/T7MDuH8ZZQ4vGQBO0gVm4CGxOH3z8BsEQEViTf9r5hAipgFzjNK TOr4wgLRsZJRYmHvKrCFnALBErv3H2EDsYUF4iRO7VwMZrMIqErM2bUQzOYVsJU4dP4aO4Qt KPFj8j0WEJtZQEti/c7jTBC2vMTmNW+Zuxg5gG5Vl3j0VxfiCCOJ3j3H2CBK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4kOM yUCPTmSWEk3OB6aqvJJ4Q2MTMyNLIzMLIxNzc9KElcR5D7RaBwoJpCeWpGanphakFsFsYeLg lGpgPLFSNZtb9FFgklkp85XOPVOfTtT1TUot3eB1uVz/0Wk/GeGDhn9unXfdzyFW5SpUr+qx RjtI38l/QZV6+7W/ydv8bJ2m7Lzjdnab6HqfZdUH1JwuzvFyVYmzm/dyz/HNRwpVt/TJHnyn Zezea7U2hjs/ZEp49seCGdbnUtQdz7F1fP7bO69ZiaU4I9FQi7moOBEAtb4BVUsDAAA= DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1614 Lines: 49 Axel Lin wrote: > > 2013/3/25 Kukjin Kim : > > Axel Lin wrote: > >> > >> The of_device_id table is supposed to be zero-terminated. > >> > >> Signed-off-by: Axel Lin > >> --- > >> drivers/clocksource/exynos_mct.c | 1 + > >> 1 file changed, 1 insertion(+) > >> > >> diff --git a/drivers/clocksource/exynos_mct.c > >> b/drivers/clocksource/exynos_mct.c > >> index 203ac05..3cdafc0 100644 > >> --- a/drivers/clocksource/exynos_mct.c > >> +++ b/drivers/clocksource/exynos_mct.c > >> @@ -514,6 +514,7 @@ static void __init exynos4_timer_resources(struct > >> device_node *np) > >> static const struct of_device_id exynos_mct_ids[] = { > >> { .compatible = "samsung,exynos4210-mct", .data = (void > >> *)MCT_INT_SPI }, > >> { .compatible = "samsung,exynos4412-mct", .data = (void > >> *)MCT_INT_PPI }, > >> + { } > > > > Thanks for your pointing out. But as I know, it is not mandatory now. > > > > Please correct me if I'm wrong. > > of_find_matching_node_and_match() > -> __of_match_node() > while (matches->name[0] || matches->type[0] || matches->compatible[0]) > > My understanding is the implementation in _of_match_node() still needs > zero-terminated entry to break out the while loop. OK, you're right. In this case, a null entry is required in __of_match_node(). Thanks, applied. - Kukjin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/