From patchwork Wed Feb 20 04:59:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vaishali Thakkar X-Patchwork-Id: 10821165 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 00A5E1399 for ; Wed, 20 Feb 2019 04:59:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D72252DE0A for ; Wed, 20 Feb 2019 04:59:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4A4B2DE0D; Wed, 20 Feb 2019 04:59:55 +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=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 6E00C2DE0A for ; Wed, 20 Feb 2019 04:59:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730505AbfBTE7y (ORCPT ); Tue, 19 Feb 2019 23:59:54 -0500 Received: from mail-pg1-f195.google.com ([209.85.215.195]:40035 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730462AbfBTE7y (ORCPT ); Tue, 19 Feb 2019 23:59:54 -0500 Received: by mail-pg1-f195.google.com with SMTP id u9so7704643pgo.7 for ; Tue, 19 Feb 2019 20:59:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=GrPVf3f3smH6f7udVG/agaLjSqZZfKta/0GjZ4pIsL4=; b=gjsInBN0fn0CvNWxvIVYgxypGFQ8kwrNgSwA1Kd+N6R0eCH5ZHGel9NNstoiLFibth uFuWY9eDqi3lKGa1xKUMTZGw4X5KLEyOjNIfnsWalGjsVwkUOQFAQM4YPDUsY55St3Z5 Sfs7TDP7TfAhnJvbM213qQtyZUm5KwQDwfvaBCnwS4ToEctNUNkeb3vWMjAM9c6PUYfs NgP++9lOh973WakRt8LUGHZtMdhQyvjkdvHg9bfVDIq1+C3uA/mp86PvfEHpj1fA9LDJ FncKo/1YJaKMtcmk+lKjeZQ9xct+88bQgDZsdhPxkFiA4siZM2FqRh8/7UG3c1O1qNId 7zvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GrPVf3f3smH6f7udVG/agaLjSqZZfKta/0GjZ4pIsL4=; b=SA2JSBY2vdhKG02mj25ltgzJf8rIfEmOWPzyPt0ZIYvT+/LhOS/OX7BzTm+oCyaA/M R1TWlOVl7jIE8StLFM+przKuzqTEqcOa4bkg7TwULi9wmE8c3oqqrBGxbq8580bWhtVj jKV4tVZOvROWrpTrHU6ZFLMdVFw3RvVrxtnOZ8uMAcGq1LvS74YCN65HYClZsWQRFfsY mZxbUPxZIYHrcfrMlwSyyxpOfcqNVSEixBhBz0vGPtJ6sfwkl/CaloR7O31fGU//12yi ydLjcfPkwFXep8UAJYzoEaD0Dx/Nbuj5BA0sXvs5TGTD7nvqrX6eATv6OGlcs87o5wOy sqpA== X-Gm-Message-State: AHQUAuYDMtVDsveyJeNLYwgDBDJW9Ae2zf8z6THIA3Warbpwwpj/BROl M7xhGyNrO6yCQNKmv7m1ks3fNw== X-Google-Smtp-Source: AHgI3Ibf8A/25EM0O4lRrHzYt4llbIjE+6l9E0LVG2LLOrJLjE1wno85JyMyG6DrVvp6W3ZpDt/BsQ== X-Received: by 2002:aa7:8150:: with SMTP id d16mr10126710pfn.172.1550638794140; Tue, 19 Feb 2019 20:59:54 -0800 (PST) Received: from localhost.localdomain ([116.75.87.120]) by smtp.gmail.com with ESMTPSA id n72sm28493966pfg.13.2019.02.19.20.59.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 19 Feb 2019 20:59:53 -0800 (PST) From: Vaishali Thakkar To: andy.gross@linaro.org Cc: david.brown@linaro.org, gregkh@linuxfoundation.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, rafael@kernel.org, bjorn.andersson@linaro.org, vkoul@kernel.org, Vaishali Thakkar Subject: [PATCH v2 5/5] base: soc: Export soc_device_register/unregister APIs Date: Wed, 20 Feb 2019 10:29:46 +0530 Message-Id: <20190220045946.7452-1-vaishali.thakkar@linaro.org> X-Mailer: git-send-email 2.17.1 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 From: Vinod Koul Qcom Socinfo driver can be built as a module, so export these two APIs. Signed-off-by: Vinod Koul Signed-off-by: Vaishali Thakkar --- Changes since v1: - None --- drivers/base/soc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/soc.c b/drivers/base/soc.c index b0933b9fe67f..7c0c5ca5953d 100644 --- a/drivers/base/soc.c +++ b/drivers/base/soc.c @@ -164,6 +164,7 @@ struct soc_device *soc_device_register(struct soc_device_attribute *soc_dev_attr out1: return ERR_PTR(ret); } +EXPORT_SYMBOL_GPL(soc_device_register); /* Ensure soc_dev->attr is freed prior to calling soc_device_unregister. */ void soc_device_unregister(struct soc_device *soc_dev) @@ -173,6 +174,7 @@ void soc_device_unregister(struct soc_device *soc_dev) device_unregister(&soc_dev->dev); early_soc_dev_attr = NULL; } +EXPORT_SYMBOL_GPL(soc_device_unregister); static int __init soc_bus_register(void) {