From patchwork Wed Sep 7 21:34:59 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9320061 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A2135607D3 for ; Wed, 7 Sep 2016 21:41:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ADBEE29437 for ; Wed, 7 Sep 2016 21:41:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A28362943A; Wed, 7 Sep 2016 21:41:15 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 192A729437 for ; Wed, 7 Sep 2016 21:41:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935328AbcIGVk3 (ORCPT ); Wed, 7 Sep 2016 17:40:29 -0400 Received: from mail-pa0-f52.google.com ([209.85.220.52]:35664 "EHLO mail-pa0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757110AbcIGVfZ (ORCPT ); Wed, 7 Sep 2016 17:35:25 -0400 Received: by mail-pa0-f52.google.com with SMTP id b2so9995219pat.2 for ; Wed, 07 Sep 2016 14:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=bvqnXeBVgE8iJASubflqsjwCLGoa2d5kQW/O1TEnTP8=; b=DVRwrilYFvEd3ghGSOl8wQrlEXrU8UJCrqTAIojf81GAy4dQ2iM8uarVUWuLhgG67u swLgxNutJeUGYdz2NAGUmtEP4M/onnUjmwEkp4gBWZxYNATVVla7BQLabuoe2l4+xSj+ i5k0Xyv7fyMMHFe6qmUov0Gk+M9BOnaKtUcD4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=bvqnXeBVgE8iJASubflqsjwCLGoa2d5kQW/O1TEnTP8=; b=CBWTWVqdJB/DWsYE3qDhblgcK6TxJ2DuUaA5IA9RLJx+b8+SNBK9NaItZUbAW7VbWj y+NaHaykzAGYLizheWtjBcaZZN9Fjo0SuJGZ4GILp+KvsVwDImv9qRYgYpvz0xdyF6fX RYuEpdEYJRoq8SgPZnjp8IsF5Iat7rFN7Tt3+aiYvl6RXEW5w8TuhrsbBcNTE98OkhSh pRw7ZWMqLhMXQq/hKhSMPzSi4QgSf4FTzNp6SPkZNHgbHEulB47XJKrHLmUiSwVdULi+ M0n2w2UrOBc0X5P/S8WlmlxosIt71M82KW2Vs4fvEjRAHlqY9K0gA+VuYUuadIHxuddW JhrQ== X-Gm-Message-State: AE9vXwMmAglIx9wp/kf9fczLU0aiK9j2vWiULylp/8nDmNKW+lePhlwcNusCspmMnXFImi6/ X-Received: by 10.66.164.227 with SMTP id yt3mr86409145pab.117.1473284124596; Wed, 07 Sep 2016 14:35:24 -0700 (PDT) Received: from localhost.localdomain (ip68-101-172-78.sd.sd.cox.net. [68.101.172.78]) by smtp.gmail.com with ESMTPSA id 75sm51015417pfw.92.2016.09.07.14.35.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 07 Sep 2016 14:35:24 -0700 (PDT) From: Stephen Boyd To: linux-usb@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org, Andy Gross , Bjorn Andersson , Neil Armstrong , Arnd Bergmann , Felipe Balbi , Peter Chen , Rob Herring , devicetree@vger.kernel.org Subject: [PATCH v4 02/22] of: device: Export of_device_{get_modalias, uvent_modalias} to modules Date: Wed, 7 Sep 2016 14:34:59 -0700 Message-Id: <20160907213519.27340-3-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160907213519.27340-1-stephen.boyd@linaro.org> References: <20160907213519.27340-1-stephen.boyd@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The ULPI bus can be built as a module, and it will soon be calling these functions when it supports probing devices from DT. Export them so they can be used by the ULPI module. Cc: Rob Herring Cc: Signed-off-by: Stephen Boyd Acked-by: Rob Herring --- drivers/of/device.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/of/device.c b/drivers/of/device.c index 8a22a253a830..6719ab35b62e 100644 --- a/drivers/of/device.c +++ b/drivers/of/device.c @@ -225,6 +225,7 @@ ssize_t of_device_get_modalias(struct device *dev, char *str, ssize_t len) return tsize; } +EXPORT_SYMBOL_GPL(of_device_get_modalias); int of_device_request_module(struct device *dev) { @@ -290,6 +291,7 @@ void of_device_uevent(struct device *dev, struct kobj_uevent_env *env) } mutex_unlock(&of_mutex); } +EXPORT_SYMBOL_GPL(of_device_uevent_modalias); int of_device_uevent_modalias(struct device *dev, struct kobj_uevent_env *env) {