From patchwork Wed Dec 19 10:58:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Likely X-Patchwork-Id: 207314 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 4027F2C03C9 for ; Wed, 19 Dec 2012 21:59:34 +1100 (EST) Received: from mail-wi0-x22a.google.com (mail-wi0-x22a.google.com [IPv6:2a00:1450:400c:c05::22a]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 420C72C008C for ; Wed, 19 Dec 2012 21:58:46 +1100 (EST) Received: by mail-wi0-f170.google.com with SMTP id hq7so285099wib.3 for ; Wed, 19 Dec 2012 02:58:40 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=QOfGOuqBOUgvBRsyakzIeVExyJZ3m4G1DH5t77aEVWg=; b=Nrmlj7Me+EgooFMEcXTjrOnpcAZpSN7K62gOG+NaI78a03HuyHxEeyqh+WrUHgrjBh QJLoB5GOs94RWFaundC5YiVWo0I8vzkzEld+3RXO4zoD5rwDm28xiP0R6zRC0xTvGFIS n4J32UHuB+97jbY6mLMSEafiabRAs6W/BT+sP5nBRaTxiNE13bBuXYasxEwsalVK9FD9 aFrfAo+3RfDhbo94ov5I/5QVu7Kf3pMiOjRuWGN+h/J9u2Xd/lRRe8wZZffLpX6IBIKG dXMhx8rrHvVMSB+YybBf6N4pbmmj8MR5U4zL+jW96ri2jCNjmuGNykOjbagJ0wTeR41F jZaQ== X-Received: by 10.180.107.67 with SMTP id ha3mr3215732wib.31.1355914720639; Wed, 19 Dec 2012 02:58:40 -0800 (PST) Received: from localhost (host86-180-229-98.range86-180.btcentralplus.com. [86.180.229.98]) by mx.google.com with ESMTPS id y3sm20054438wix.6.2012.12.19.02.58.38 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 19 Dec 2012 02:58:39 -0800 (PST) Received: by localhost (Postfix, from userid 1000) id B86233E07C5; Wed, 19 Dec 2012 10:58:37 +0000 (GMT) From: Grant Likely To: linux-kernel@vger.kernel.org, devicetree-discuss@lists.ozlabs.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] of: Fix export of of_find_matching_node_and_match() Date: Wed, 19 Dec 2012 10:58:36 +0000 Message-Id: <1355914716-19469-1-git-send-email-grant.likely@secretlab.ca> X-Mailer: git-send-email 1.7.10.4 X-Gm-Message-State: ALoCoQmGW2rJzjaB684JFeN+6hn04HEy00DdOMm2FbeV0YHAPBLnDtrZ8wTuqDIK9pq7EVhGx9D2 Cc: Anatolij Gustschin , Stephen Warren , Rob Herring X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" Commit 50c8af4cf9, "of: introduce for_each_matching_node_and_match()" renamed of_find_matching_node() to of_find_matching_node_and_match() and created a new static inline of_find_matching_node() wrapper around the new name. However, the change neglected to change the EXPORT_SYMBOL() reference causing build errors for modules. This patch fixes the EXPORT_SYMBOL() statement. Discovered on a PowerPC Efika build with the mpc52xx_uart driver being built as a module. Reported-by: Benjamin Herrenschmidt Signed-off-by: Grant Likely Cc: Stephen Warren Cc: Rob Herring Cc: Anatolij Gustschin Reviewed-by: Stephen Warren --- I'll push this patch out to my tree ASAP. drivers/of/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index db8d211..2390ddb 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -629,7 +629,7 @@ struct device_node *of_find_matching_node_and_match(struct device_node *from, read_unlock(&devtree_lock); return np; } -EXPORT_SYMBOL(of_find_matching_node); +EXPORT_SYMBOL(of_find_matching_node_and_match); /** * of_modalias_node - Lookup appropriate modalias for a device node