2020-01-22 10:42:12

by Peter Ujfalusi

[permalink] [raw]
Subject: [PATCH] firmware: ti_sci: Export devm_ti_sci_get_of_resource for modules

Allow devm_ti_sci_get_of_resource() to be usable from modules.

Signed-off-by: Peter Ujfalusi <[email protected]>
---
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)
--
Peter

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


2020-02-03 09:46:31

by Peter Ujfalusi

[permalink] [raw]
Subject: Re: [PATCH] firmware: ti_sci: Export devm_ti_sci_get_of_resource for modules

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/[email protected]/
https://lore.kernel.org/lkml/[email protected]/

- Péter

> Signed-off-by: Peter Ujfalusi <[email protected]>
> ---
> 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

2020-02-03 10:04:15

by Tero Kristo

[permalink] [raw]
Subject: Re: [PATCH] firmware: ti_sci: Export devm_ti_sci_get_of_resource for modules

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 <[email protected]>

>
> I would really appreciate if ti_sci maintainers would spare some time on
> this and the other two patch ;)
>
> https://lore.kernel.org/lkml/[email protected]/
> https://lore.kernel.org/lkml/[email protected]/
>
> - Péter
>
>> Signed-off-by: Peter Ujfalusi <[email protected]>
>> ---
>> 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