From patchwork Thu Sep 1 00:40:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Boyd X-Patchwork-Id: 9308093 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 8111360487 for ; Thu, 1 Sep 2016 00:43:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7122E28C53 for ; Thu, 1 Sep 2016 00:43:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5C42329150; Thu, 1 Sep 2016 00:43:17 +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 E63B428C53 for ; Thu, 1 Sep 2016 00:43:16 +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 1bfG4F-0007gR-H0; Thu, 01 Sep 2016 00:41:19 +0000 Received: from mail-pa0-x233.google.com ([2607:f8b0:400e:c03::233]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bfG3y-0007Y5-09 for linux-arm-kernel@lists.infradead.org; Thu, 01 Sep 2016 00:41:04 +0000 Received: by mail-pa0-x233.google.com with SMTP id hb8so23569634pac.2 for ; Wed, 31 Aug 2016 17:40:40 -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=v0CRberADOIE2bRQo/AD3ODg6LbcXxrRTUYOK98FmFU=; b=VCR3pwgDB+z06fnaA+2IlBQ8EHYmuywQxyizP/EgwwFJ1NRb6OVlXRLq5aHeX1EASx tvqdGyjCfcmRIt7vnXXgQLx6EC8lMPKhihC26HwsaL33mpE9TbwV8+Ts4frq0WLqmb6u PbN2oluTZukFhAcJYFpnOxB/xoFZN219eaQns= 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=v0CRberADOIE2bRQo/AD3ODg6LbcXxrRTUYOK98FmFU=; b=IZjqFna019FctOp7hhQ5EMX32dzvy3lAbzGZ/ekbpYlubJDucnINp6yFajaK2h/mzo 2FQE9PUCza0Iu8nPddkM6avYXHG00Ef27XWOhTXuA6DnsYfQ0RhBDKS4e9fUpsBuNgCa Gzr29Q23K/zsUuKASqfM8YMaoaIhWSwvWG2Ul1t1++8v4K79qGdvcWWYghWYyELjEAoP A4TSKcHJtKlQx660uPp6ZsSxs/OzUlz5l/c6NXXR8lpCSvOXmiLExAPXZrp/ozCLrfno oFoFUjvypj4GyJy3dStf7W2iBHB1SlWW4cBEVgE6uP3OJUmLErFDFdybuAPOXMi0SBoD blMQ== X-Gm-Message-State: AE9vXwO3Wrf0jFoK8CjUx5WTG5V2I3p4IrMAcH1gtCxVNj1JDjfnpW076OjvZwV5/uCIgYZb X-Received: by 10.66.161.132 with SMTP id xs4mr21847662pab.140.1472690440389; Wed, 31 Aug 2016 17:40:40 -0700 (PDT) Received: from localhost.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id m5sm2292303paw.40.2016.08.31.17.40.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 31 Aug 2016 17:40:40 -0700 (PDT) From: Stephen Boyd To: linux-usb@vger.kernel.org Subject: [PATCH v3 02/22] of: device: Export of_device_{get_modalias, uvent_modalias} to modules Date: Wed, 31 Aug 2016 17:40:16 -0700 Message-Id: <20160901004036.23936-3-stephen.boyd@linaro.org> X-Mailer: git-send-email 2.9.0.rc2.8.ga28705d In-Reply-To: <20160901004036.23936-1-stephen.boyd@linaro.org> References: <20160901004036.23936-1-stephen.boyd@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160831_174102_110198_77F621E8 X-CRM114-Status: GOOD ( 11.09 ) 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, devicetree@vger.kernel.or, Bjorn Andersson , Rob Herring , 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. Cc: Rob Herring Cc: --- 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) {