firmware: ti_sci: Export devm_ti_sci_get_of_resource for modules
diff mbox series

Message ID 20200122104031.15733-1-peter.ujfalusi@ti.com
State New
Headers show
Series
  • firmware: ti_sci: Export devm_ti_sci_get_of_resource for modules
Related show

Commit Message

Peter Ujfalusi Jan. 22, 2020, 10:40 a.m. UTC
Allow devm_ti_sci_get_of_resource() to be usable from modules.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
---
 drivers/firmware/ti_sci.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Peter Ujfalusi Feb. 3, 2020, 8:10 a.m. UTC | #1
Hi,

On 22/01/2020 12.40, Peter Ujfalusi wrote:
> Allow devm_ti_sci_get_of_resource() to be usable from modules.

I would really appreciate if ti_sci maintainers would spare some time on
this and the other two patch ;)

https://lore.kernel.org/lkml/20200122104044.15837-1-peter.ujfalusi@ti.com/
https://lore.kernel.org/lkml/20200122104009.15622-1-peter.ujfalusi@ti.com/

- Péter

> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
> ---
>  drivers/firmware/ti_sci.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c
> index f13e4a96f3b7..3d8241cb6921 100644
> --- a/drivers/firmware/ti_sci.c
> +++ b/drivers/firmware/ti_sci.c
> @@ -3332,6 +3332,7 @@ devm_ti_sci_get_of_resource(const struct ti_sci_handle *handle,
>  
>  	return ERR_PTR(-EINVAL);
>  }
> +EXPORT_SYMBOL_GPL(devm_ti_sci_get_of_resource);
>  
>  static int tisci_reboot_handler(struct notifier_block *nb, unsigned long mode,
>  				void *cmd)
> 

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
Tero Kristo Feb. 3, 2020, 8:35 a.m. UTC | #2
On 03/02/2020 10:10, Peter Ujfalusi wrote:
> Hi,
> 
> On 22/01/2020 12.40, Peter Ujfalusi wrote:
>> Allow devm_ti_sci_get_of_resource() to be usable from modules.

This one looks fine to me, so:

Acked-by: Tero Kristo <t-kristo@ti.com>

> 
> I would really appreciate if ti_sci maintainers would spare some time on
> this and the other two patch ;)
> 
> https://lore.kernel.org/lkml/20200122104044.15837-1-peter.ujfalusi@ti.com/
> https://lore.kernel.org/lkml/20200122104009.15622-1-peter.ujfalusi@ti.com/
> 
> - Péter
> 
>> Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
>> ---
>>   drivers/firmware/ti_sci.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c
>> index f13e4a96f3b7..3d8241cb6921 100644
>> --- a/drivers/firmware/ti_sci.c
>> +++ b/drivers/firmware/ti_sci.c
>> @@ -3332,6 +3332,7 @@ devm_ti_sci_get_of_resource(const struct ti_sci_handle *handle,
>>   
>>   	return ERR_PTR(-EINVAL);
>>   }
>> +EXPORT_SYMBOL_GPL(devm_ti_sci_get_of_resource);
>>   
>>   static int tisci_reboot_handler(struct notifier_block *nb, unsigned long mode,
>>   				void *cmd)
>>
> 
> 

--
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Patch
diff mbox series

diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c
index f13e4a96f3b7..3d8241cb6921 100644
--- a/drivers/firmware/ti_sci.c
+++ b/drivers/firmware/ti_sci.c
@@ -3332,6 +3332,7 @@  devm_ti_sci_get_of_resource(const struct ti_sci_handle *handle,
 
 	return ERR_PTR(-EINVAL);
 }
+EXPORT_SYMBOL_GPL(devm_ti_sci_get_of_resource);
 
 static int tisci_reboot_handler(struct notifier_block *nb, unsigned long mode,
 				void *cmd)