From patchwork Tue Oct 25 12:01:26 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Warren X-Patchwork-Id: 121625 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id AB53CB6F98 for ; Tue, 25 Oct 2011 23:02:07 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756462Ab1JYMCF (ORCPT ); Tue, 25 Oct 2011 08:02:05 -0400 Received: from avon.wwwdotorg.org ([70.85.31.133]:49360 "EHLO avon.wwwdotorg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756184Ab1JYMCF (ORCPT ); Tue, 25 Oct 2011 08:02:05 -0400 Received: from severn.wwwdotorg.org (unknown [192.168.65.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by avon.wwwdotorg.org (Postfix) with ESMTPS id 398DD6314; Tue, 25 Oct 2011 06:03:18 -0600 (MDT) Received: from localhost.localdomain (unknown [85.13.70.251]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by severn.wwwdotorg.org (Postfix) with ESMTPSA id 06BA2E40DC; Tue, 25 Oct 2011 06:02:00 -0600 (MDT) From: Stephen Warren To: Olof Johansson , Colin Cross , Grant Likely Cc: linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, Stephen Warren Subject: [PATCH v3 1/3] dt: add empty of_machine_is_compatible Date: Tue, 25 Oct 2011 14:01:26 +0200 Message-Id: <1319544088-25946-1-git-send-email-swarren@nvidia.com> X-Mailer: git-send-email 1.7.4.1 X-NVConfidentiality: public X-Virus-Scanned: clamav-milter 0.96.5 at avon.wwwdotorg.org X-Virus-Status: Clean Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org The patch adds an empty function for non-dt build, so that drivers migrating to dt can save some '#ifdef CONFIG_OF'. v3: New patch Signed-off-by: Stephen Warren --- Patch 2 relies on this patch, but this patch would typically be merged via Grant's OF/DT tree. include/linux/of.h | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/linux/of.h b/include/linux/of.h index 736b747..47303c7 100644 --- a/include/linux/of.h +++ b/include/linux/of.h @@ -302,6 +302,11 @@ static inline struct device_node *of_parse_phandle(struct device_node *np, return NULL; } +static inline int of_machine_is_compatible(const char *compat) +{ + return 0; +} + #define of_match_ptr(_ptr) NULL #endif /* CONFIG_OF */