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

Wolfram Sang posted 15 patches 1 year, 2 months ago
[PATCH 15/15] PM / Sleep: don't include 'pm_wakeup.h' directly
Posted by Wolfram Sang 1 year, 2 months ago
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@sang-engineering.com>
---
 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"
 
-- 
2.39.2
Re: [PATCH 15/15] PM / Sleep: don't include 'pm_wakeup.h' directly
Posted by Rafael J. Wysocki 1 year, 2 months ago
On Mon, Nov 18, 2024 at 8:30 AM Wolfram Sang
<wsa+renesas@sang-engineering.com> 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@sang-engineering.com>
> ---
>  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!