From patchwork Thu Jul 7 22:20:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9219703 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 4A0BB607D9 for ; Thu, 7 Jul 2016 22:23:46 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3849728488 for ; Thu, 7 Jul 2016 22:23:46 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B02C2848A; Thu, 7 Jul 2016 22:23:46 +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=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id ADBA728488 for ; Thu, 7 Jul 2016 22:23:45 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bLHgD-0007kY-GV; Thu, 07 Jul 2016 22:21:57 +0000 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bLHfx-0007eI-Ae for linux-arm-kernel@lists.infradead.org; Thu, 07 Jul 2016 22:21:41 +0000 Received: by mail-pf0-x22a.google.com with SMTP id i123so9703179pfg.0 for ; Thu, 07 Jul 2016 15:21:20 -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=X8H9QXIHBvb/JQyCDWV39cJ4D4KABJ+2CKIbHeyF8y0=; b=iCj4SDtkoIU3J45CekRbrQAH4nLGkS7abdQ2i7eqcw+vXST5dDm63/nHFQpMpAjpz+ SH4JSyNovgKT0C7ifq+nEq8aaoe2aPVBoLUmZ/qSSTvgz7Kg04BY9qRBOEaQ95tcdzGf qezvB/7WxxEe4CfICFJbyA5gCqlGBKx3bCXqQ= 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=X8H9QXIHBvb/JQyCDWV39cJ4D4KABJ+2CKIbHeyF8y0=; b=Kwc9lYIHac+bJjOCujU/K4TIkyMcWpRMrL6tdrnToUQRjGNLMzDO74tFiL51FGng0Z PS6ewTPPbBXvcGJjL/W8IFNJKVMexr3olSvwuGF5gx1skwZiQ6ZRwp8N9RxBvFcAz2BW 9ozD4g/R29t5YQA1szFWiCPzCyBTbiwyVbEIuOKfB6/C9W4hG6/ADLFwh7LnoDHNiRgU bJALZ9MKq1tqggYvw9UBcIjiDFHJYqqekfkKqfnjsZmGGZ6KNoFJcWuE6qBbRC/vNDJ0 UWF/KN8GpK1uVLjIdn5b2IKuU8rDVLa6GDk/MW2qRqqKyTMscDoUVzv6UrGmuR95N5GV 3Sxg== X-Gm-Message-State: ALyK8tIhdys19ToEx/FK/jWMEFUSLd32lUBIgrh3kO8S+xPzmuPjYKLiZqipbWfJeDaj9Hig X-Received: by 10.98.100.14 with SMTP id y14mr4297677pfb.84.1467930080481; Thu, 07 Jul 2016 15:21:20 -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 j8sm6781807paj.22.2016.07.07.15.21.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jul 2016 15:21:19 -0700 (PDT) From: Stephen Boyd To: linux-usb@vger.kernel.org Subject: [PATCH v2 02/22] of: device: Export of_device_{get_modalias, uvent_modalias} to modules Date: Thu, 7 Jul 2016 15:20:53 -0700 Message-Id: <20160707222114.1673-3-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160707222114.1673-1-stephen.boyd@linaro.org> References: <20160707222114.1673-1-stephen.boyd@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160707_152141_392012_7B27C194 X-CRM114-Status: GOOD ( 11.14 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Felipe Balbi , Arnd Bergmann , Neil Armstrong , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, Bjorn Andersson , Andy Gross , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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. Signed-off-by: Stephen Boyd --- 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) {