[-next] hwmon: Remove duplicated include in lm75.c

Message ID 20230718002836.118268-1-yang.lee@linux.alibaba.com
State New
Headers
Series [-next] hwmon: Remove duplicated include in lm75.c |

Commit Message

Yang Li July 18, 2023, 12:28 a.m. UTC
  ./drivers/hwmon/lm75.c: linux/of.h is included more than once.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5900
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 drivers/hwmon/lm75.c | 1 -
 1 file changed, 1 deletion(-)
  

Comments

Guenter Roeck July 18, 2023, 12:30 a.m. UTC | #1
On 7/17/23 17:28, Yang Li wrote:
> ./drivers/hwmon/lm75.c: linux/of.h is included more than once.
> 
> Reported-by: Abaci Robot <abaci@linux.alibaba.com>
> Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=5900
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>

Already fixed in hwmon-next.

Guenter

> ---
>   drivers/hwmon/lm75.c | 1 -
>   1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
> index 72cdc405a3b0..bcfa8193e5e7 100644
> --- a/drivers/hwmon/lm75.c
> +++ b/drivers/hwmon/lm75.c
> @@ -14,7 +14,6 @@
>   #include <linux/hwmon-sysfs.h>
>   #include <linux/err.h>
>   #include <linux/of.h>
> -#include <linux/of.h>
>   #include <linux/regmap.h>
>   #include <linux/util_macros.h>
>   #include <linux/regulator/consumer.h>
  

Patch

diff --git a/drivers/hwmon/lm75.c b/drivers/hwmon/lm75.c
index 72cdc405a3b0..bcfa8193e5e7 100644
--- a/drivers/hwmon/lm75.c
+++ b/drivers/hwmon/lm75.c
@@ -14,7 +14,6 @@ 
 #include <linux/hwmon-sysfs.h>
 #include <linux/err.h>
 #include <linux/of.h>
-#include <linux/of.h>
 #include <linux/regmap.h>
 #include <linux/util_macros.h>
 #include <linux/regulator/consumer.h>