diff mbox

[1/2] ACPI / PM: Export acpi_device_fix_up_power()

Message ID 1463664342-19209-1-git-send-email-ulf.hansson@linaro.org (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Ulf Hansson May 19, 2016, 1:25 p.m. UTC
Drivers that needs acpi_device_fix_up_power(), allow them to be built as
modules by exporting this function.

Cc: <stable@vger.kernel.org> # 4.5+
Tested-by: Laszlo Fiat <laszlo.fiat@gmail.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
---

Rafael/Len, if you are okay with using acpi_device_fix_up_power() as a fix
for an issue in patch 2/2, then I would like to request an ack so I can take
both these patches via my MMC tree.

---
 drivers/acpi/device_pm.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Rafael J. Wysocki May 19, 2016, 1:52 p.m. UTC | #1
On Thu, May 19, 2016 at 3:25 PM, Ulf Hansson <ulf.hansson@linaro.org> wrote:
> Drivers that needs acpi_device_fix_up_power(), allow them to be built as
> modules by exporting this function.
>
> Cc: <stable@vger.kernel.org> # 4.5+
> Tested-by: Laszlo Fiat <laszlo.fiat@gmail.com>
> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
> ---
>
> Rafael/Len, if you are okay with using acpi_device_fix_up_power() as a fix
> for an issue in patch 2/2, then I would like to request an ack so I can take
> both these patches via my MMC tree.

Yeah, should be fine.

Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

> ---
>  drivers/acpi/device_pm.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
> index cd2c3d6..993fd31 100644
> --- a/drivers/acpi/device_pm.c
> +++ b/drivers/acpi/device_pm.c
> @@ -319,6 +319,7 @@ int acpi_device_fix_up_power(struct acpi_device *device)
>
>         return ret;
>  }
> +EXPORT_SYMBOL_GPL(acpi_device_fix_up_power);
>
>  int acpi_device_update_power(struct acpi_device *device, int *state_p)
>  {
> --
> 1.9.1
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Ulf Hansson May 20, 2016, 2:04 p.m. UTC | #2
On 19 May 2016 at 15:52, Rafael J. Wysocki <rafael@kernel.org> wrote:
> On Thu, May 19, 2016 at 3:25 PM, Ulf Hansson <ulf.hansson@linaro.org> wrote:
>> Drivers that needs acpi_device_fix_up_power(), allow them to be built as
>> modules by exporting this function.
>>
>> Cc: <stable@vger.kernel.org> # 4.5+
>> Tested-by: Laszlo Fiat <laszlo.fiat@gmail.com>
>> Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
>> ---
>>
>> Rafael/Len, if you are okay with using acpi_device_fix_up_power() as a fix
>> for an issue in patch 2/2, then I would like to request an ack so I can take
>> both these patches via my MMC tree.
>
> Yeah, should be fine.
>
> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>

Thanks, applied for fixes!

Kind regards
Uffe

>
>> ---
>>  drivers/acpi/device_pm.c | 1 +
>>  1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
>> index cd2c3d6..993fd31 100644
>> --- a/drivers/acpi/device_pm.c
>> +++ b/drivers/acpi/device_pm.c
>> @@ -319,6 +319,7 @@ int acpi_device_fix_up_power(struct acpi_device *device)
>>
>>         return ret;
>>  }
>> +EXPORT_SYMBOL_GPL(acpi_device_fix_up_power);
>>
>>  int acpi_device_update_power(struct acpi_device *device, int *state_p)
>>  {
>> --
>> 1.9.1
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
index cd2c3d6..993fd31 100644
--- a/drivers/acpi/device_pm.c
+++ b/drivers/acpi/device_pm.c
@@ -319,6 +319,7 @@  int acpi_device_fix_up_power(struct acpi_device *device)
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(acpi_device_fix_up_power);
 
 int acpi_device_update_power(struct acpi_device *device, int *state_p)
 {