Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1465085 > unrolled thread

[PATCH 05/13] scpi: move of_match table before probe functions

Started byNeil Armstrong <narmstrong@baylibre.com>
First post2016-08-18 12:20 +0200
Last post2016-08-23 10:30 +0200
Articles 3 — 2 participants

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 05/13] scpi: move of_match table before probe functions Neil Armstrong <narmstrong@baylibre.com> - 2016-08-18 12:20 +0200
    Re: [PATCH 05/13] scpi: move of_match table before probe functions Sudeep Holla <sudeep.holla@arm.com> - 2016-08-19 18:30 +0200
      Re: [PATCH 05/13] scpi: move of_match table before probe functions Neil Armstrong <narmstrong@baylibre.com> - 2016-08-23 10:30 +0200

#1465085 — [PATCH 05/13] scpi: move of_match table before probe functions

FromNeil Armstrong <narmstrong@baylibre.com>
Date2016-08-18 12:20 +0200
Subject[PATCH 05/13] scpi: move of_match table before probe functions
Message-ID<s7sAx-6Nh-9@gated-at.bofh.it>
Move the of_match table to prapre adding new compatible strings, with
match data in order to be used by the probe function.

Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
---
 drivers/firmware/arm_scpi.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/firmware/arm_scpi.c b/drivers/firmware/arm_scpi.c
index bb9965f..b0d911b 100644
--- a/drivers/firmware/arm_scpi.c
+++ b/drivers/firmware/arm_scpi.c
@@ -972,6 +972,13 @@ static int scpi_alloc_xfer_list(struct device *dev, struct scpi_chan *ch)
 	return 0;
 }
 
+static const struct of_device_id scpi_of_match[] = {
+	{.compatible = "arm,scpi"},
+	{},
+};
+
+MODULE_DEVICE_TABLE(of, scpi_of_match);
+
 static int scpi_probe(struct platform_device *pdev)
 {
 	int count, idx, ret;
@@ -1069,13 +1076,6 @@ err:
 	return of_platform_populate(dev->of_node, NULL, NULL, dev);
 }
 
-static const struct of_device_id scpi_of_match[] = {
-	{.compatible = "arm,scpi"},
-	{},
-};
-
-MODULE_DEVICE_TABLE(of, scpi_of_match);
-
 static struct platform_driver scpi_driver = {
 	.driver = {
 		.name = "scpi_protocol",
-- 
1.9.1

[toc] | [next] | [standalone]


#1466547

FromSudeep Holla <sudeep.holla@arm.com>
Date2016-08-19 18:30 +0200
Message-ID<s7UQa-7Ui-47@gated-at.bofh.it>
In reply to#1465085

On 18/08/16 11:10, Neil Armstrong wrote:
> Move the of_match table to prapre adding new compatible strings, with
> match data in order to be used by the probe function.
>

I understand the need of this change, but can be part of the patch
introducing the need for this.

-- 
Regards,
Sudeep

[toc] | [prev] | [next] | [standalone]


#1468376

FromNeil Armstrong <narmstrong@baylibre.com>
Date2016-08-23 10:30 +0200
Message-ID<s9ffQ-1oj-13@gated-at.bofh.it>
In reply to#1466547
On 08/19/2016 06:24 PM, Sudeep Holla wrote:
> 
> 
> On 18/08/16 11:10, Neil Armstrong wrote:
>> Move the of_match table to prapre adding new compatible strings, with
>> match data in order to be used by the probe function.
>>
> 
> I understand the need of this change, but can be part of the patch
> introducing the need for this.
> 

Yes, but I did not want to pollute the next patch, I'll merge them for v2.

Neil

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web