Re: [PATCH 15/15] PM / Sleep: don't include 'pm_wakeup.h' directly

From: Rafael J. Wysocki
Date: Thu Dec 05 2024 - 06:17:39 EST


On Mon, Nov 18, 2024 at 8:30 AM Wolfram Sang
<wsa+renesas@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> The header clearly states that it does not want to be included directly,
> only via 'device.h'. 'platform_device.h' works equally well. Remove the
> direct inclusion.
>
> Signed-off-by: Wolfram Sang <wsa+renesas@xxxxxxxxxxxxxxxxxxxx>
> ---
> kernel/power/autosleep.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/kernel/power/autosleep.c b/kernel/power/autosleep.c
> index b29c8aca7486..865df641b97c 100644
> --- a/kernel/power/autosleep.c
> +++ b/kernel/power/autosleep.c
> @@ -9,7 +9,6 @@
>
> #include <linux/device.h>
> #include <linux/mutex.h>
> -#include <linux/pm_wakeup.h>
>
> #include "power.h"
>
> --

Applied as 6.14 material, thanks!