From patchwork Tue Oct 18 01:56:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9381063 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 DEC1B6086B for ; Tue, 18 Oct 2016 01:59:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7C8128CCF for ; Tue, 18 Oct 2016 01:59:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BB62728CDA; Tue, 18 Oct 2016 01:59:09 +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 462A028CCF for ; Tue, 18 Oct 2016 01:59:09 +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 1bwJew-00007f-72; Tue, 18 Oct 2016 01:57:42 +0000 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bwJeH-0008KO-Vq for linux-arm-kernel@lists.infradead.org; Tue, 18 Oct 2016 01:57:03 +0000 Received: by mail-pa0-x232.google.com with SMTP id vu5so66504460pab.0 for ; Mon, 17 Oct 2016 18:56:41 -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=d8OE9XT8OuVWAbPn+xuJtf7iK6Z//A4UTMg4OMX7+NI=; b=hue9C9bha97S632aZEUH387HJ/vM9DRCKTkdS/l3HxII0KT2s7PhCfWSB5CuFrHrOw 8jFEhjyHqjajoOFUSaL3QMBMX3ypLtQHYFu3DrqXryiG7sqHBl2WvAO0nhUg9I8eaiOy qF6OXKCbdyF2bBe9S1flWv6/dyNehn6lFXWCQ= 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=d8OE9XT8OuVWAbPn+xuJtf7iK6Z//A4UTMg4OMX7+NI=; b=MN2vRa855BaUAadW27y4IN7EsqtB3EaOTRkvbXYFAWLUE+yp8Mj3gqO9OlBiMfcXIu Ty99TEJUFMbyMVhyN34meMoCRNgY6Ahndaoqo0N0hWRltPJyFya/6r23eqQYlpE83ybc sSPx0AukNUGg33xglnhHvOFZ1bHPsm/T4RXJdrALxJt+v29GWPUxVXNK/oyox+/hp8qn uTO/tSkr9MnCjsxI2sJ7Aplq7RcygkOfjNdq5xPjZ4k/PYGJWHrkAMchWCgd0DGaLWVT QRwRQOEGy+lEu95C2jLBmx3Lz2rTXin9Z++ZiipaVPdAyw5Tu2JMQbM7jtxYgLzv9rl7 SxCg== X-Gm-Message-State: AA6/9RnPt+4KgtglyZgf0QB5oKhn6UzgdvyfIWhgR/4jXQtuzF+Qu7EdZYLIKpzkhTvu0jhQ X-Received: by 10.66.166.238 with SMTP id zj14mr533672pab.205.1476755801266; Mon, 17 Oct 2016 18:56:41 -0700 (PDT) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id j6sm51020430paa.44.2016.10.17.18.56.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Oct 2016 18:56:40 -0700 (PDT) From: Stephen Boyd To: linux-usb@vger.kernel.org Subject: [PATCH v5 02/23] of: device: Export of_device_{get_modalias, uvent_modalias} to modules Date: Mon, 17 Oct 2016 18:56:15 -0700 Message-Id: <20161018015636.11701-3-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.10.0.297.gf6727b0 In-Reply-To: <20161018015636.11701-1-stephen.boyd@linaro.org> References: <20161018015636.11701-1-stephen.boyd@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20161017_185702_201961_74F09CEB X-CRM114-Status: GOOD ( 11.17 ) 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 , devicetree@vger.kernel.org, Peter Chen , 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. Acked-by: Rob Herring Cc: 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) {