2019-01-17 09:28:19

by Yue Haibing

[permalink] [raw]
Subject: [PATCH -next] power: supply: core: remove duplicated include from power_supply_core.c

Remove duplicated include.

Signed-off-by: YueHaibing <[email protected]>
---
drivers/power/supply/power_supply_core.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index 569790e..07a85e1 100644
--- a/drivers/power/supply/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
@@ -156,8 +156,6 @@ static void power_supply_deferred_register_work(struct work_struct *work)
}

#ifdef CONFIG_OF
-#include <linux/of.h>
-
static int __power_supply_populate_supplied_from(struct device *dev,
void *data)
{
--
2.7.0




2019-01-24 10:00:17

by Sebastian Reichel

[permalink] [raw]
Subject: Re: [PATCH -next] power: supply: core: remove duplicated include from power_supply_core.c

Hi,

On Thu, Jan 17, 2019 at 03:11:43PM +0800, YueHaibing wrote:
> Remove duplicated include.
>
> Signed-off-by: YueHaibing <[email protected]>
> ---

Thanks, but I already merged the same patch from Yangtao Li (who
sent it a bit earlier).

-- Sebastian

> drivers/power/supply/power_supply_core.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
> index 569790e..07a85e1 100644
> --- a/drivers/power/supply/power_supply_core.c
> +++ b/drivers/power/supply/power_supply_core.c
> @@ -156,8 +156,6 @@ static void power_supply_deferred_register_work(struct work_struct *work)
> }
>
> #ifdef CONFIG_OF
> -#include <linux/of.h>
> -
> static int __power_supply_populate_supplied_from(struct device *dev,
> void *data)
> {
> --
> 2.7.0
>
>


Attachments:
(No filename) (883.00 B)
signature.asc (849.00 B)
Download all attachments