Skip to contentSkip to conversation

base: soc: Export soc_device_register/unregister APIs

PATCH Superseded Vaishali Thakkar 2 participants 3 messages Feb 20, 2019

Subsystems (2)

v2 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 5/5 base: soc: Export soc_device_register/unregister APIs

From: Vinod Koul <[email protected]>

Qcom Socinfo driver can be built as a module, so
export these two APIs.

---
Changes since v1:
- None

---
 drivers/base/soc.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/base/soc.c +2 -0
index b0933b9fe67f..7c0c5ca5953d 100644
@@ -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)
 {
Signature · 1 line
2.17.1
maintainer
#1 lore raw
Quoted 10 lines · Vaishali Thakkar

From: Vinod Koul <[email protected]>

Qcom Socinfo driver can be built as a module, so
export these two APIs.

---
Changes since v1:
- None

This is fixing a build breakage introduced by an earlier patch. Please rearange the patches so that breakage never happens.

Also, any chance you can properly "thread" your patches so they all show up together? git send-email does this automatically...

thanks,

greg k-h

#2 lore raw
Quoted 7 lines · Greg KH
Quoted 5 lines · Vaishali Thakkar

From: Vinod Koul <[email protected]>

Qcom Socinfo driver can be built as a module, so
export these two APIs.

Quoted 8 lines
Quoted 5 lines

---
Changes since v1:
- None

This is fixing a build breakage introduced by an earlier patch. Please rearange the patches so that breakage never happens.

Ok, yes. I'll put it as patch two [before adding socinfo driver].

Quoted 2 lines

Also, any chance you can properly "thread" your patches so they all show up together? git send-email does this automatically...

I'm using send-email only but I was sending it one by one. I believe that's the reason why didn't come as a thread. I'll fix that in next version too.

Quoted 3 lines

thanks,

greg k-h