diff mbox series

include: linux: pm: Remove duplicate declaration

Message ID 20210324072912.737621-1-wanjiabing@vivo.com
State New
Headers show
Series include: linux: pm: Remove duplicate declaration | expand

Commit Message

Wan Jiabing March 24, 2021, 7:29 a.m. UTC
struct device is declared twice.So remove the duplicate.

Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>
---
 include/linux/pm.h | 1 -
 1 file changed, 1 deletion(-)

Comments

Rafael J. Wysocki April 7, 2021, 5:19 p.m. UTC | #1
On Wed, Mar 24, 2021 at 8:30 AM Wan Jiabing <wanjiabing@vivo.com> wrote:
>

> struct device is declared twice.So remove the duplicate.

>

> Signed-off-by: Wan Jiabing <wanjiabing@vivo.com>

> ---

>  include/linux/pm.h | 1 -

>  1 file changed, 1 deletion(-)

>

> diff --git a/include/linux/pm.h b/include/linux/pm.h

> index 482313a8ccfc..c9657408fee1 100644

> --- a/include/linux/pm.h

> +++ b/include/linux/pm.h

> @@ -39,7 +39,6 @@ static inline void pm_vt_switch_unregister(struct device *dev)

>   * Device power management

>   */

>

> -struct device;

>

>  #ifdef CONFIG_PM

>  extern const char power_group_name[];          /* = "power" */

> --


Applied as 5.13 material, thanks!
diff mbox series

Patch

diff --git a/include/linux/pm.h b/include/linux/pm.h
index 482313a8ccfc..c9657408fee1 100644
--- a/include/linux/pm.h
+++ b/include/linux/pm.h
@@ -39,7 +39,6 @@  static inline void pm_vt_switch_unregister(struct device *dev)
  * Device power management
  */
 
-struct device;
 
 #ifdef CONFIG_PM
 extern const char power_group_name[];		/* = "power" */