mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Wang Honghui <honghui.wang@ucas.com.cn>
To: Sudeep Holla <sudeep.holla@arm.com>,
	Cristian Marussi <cristian.marussi@arm.com>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH V2 3/3] arm_scpi: Rev last modify to support acpi
Date: Thu, 24 Nov 2022 17:59:47 +0800	[thread overview]
Message-ID: <566DA2F800E4BACA+Y39Ak8xtNJaBqB90@TP-P15V.lan> (raw)

Rev last modify to support acpi

Signed-off-by: Wang Honghui <honghui.wang@ucas.com.cn>
---
 drivers/firmware/arm_scpi.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
index e2e90dcc38bd..aca0a9780c12 100644
--- a/drivers/firmware/arm_scpi.c
+++ b/drivers/firmware/arm_scpi.c
@@ -908,7 +908,9 @@ static const struct of_device_id shmem_of_match[] __maybe_unused = {
 	{ }
 };
 
+#ifdef CONFIG_PHYTIUM_MBOX
 extern struct mbox_chan *phytium_mbox_request_channel(struct mbox_client *cl);
+#endif
 
 static int scpi_probe(struct platform_device *pdev)
 {
@@ -1047,6 +1049,7 @@ static int scpi_probe(struct platform_device *pdev)
 
                         ret = scpi_alloc_xfer_list(dev, pchan);
 
+#ifdef phytium_mbox_request_channel
                         if (!ret) {
                                 pchan->chan = phytium_mbox_request_channel(cl);
 
@@ -1058,6 +1061,7 @@ static int scpi_probe(struct platform_device *pdev)
                                         dev_err(dev, "failed to get channel%d err %d\n",
                                                 idx, ret);
                         }
+#endif
 
                         return ret;
                 }
-- 
2.34.1


             reply	other threads:[~2022-11-24 10:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-24  9:59 Wang Honghui [this message]
2022-11-24 11:14 ` Sudeep Holla
2022-11-24 12:26   ` 王洪辉

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=566DA2F800E4BACA+Y39Ak8xtNJaBqB90@TP-P15V.lan \
    --to=honghui.wang@ucas.com.cn \
    --cc=cristian.marussi@arm.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sudeep.holla@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®