Skip to contentSkip to conversation

drivers: net: phy: marvell.c: removed checkpatch.pl warnings

PATCH Applied Avinash kumar 3 participants 3 messages Sep 30, 2013 – Oct 15, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: net: phy: marvell.c: removed checkpatch.pl warnings

removes following warnings-
drivers/net/phy/marvell.c:37: WARNING: Use #include <linux/io.h> instead of <asm/io.h> drivers/net/phy/marvell.c:39: WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>

---
 drivers/net/phy/marvell.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/phy/marvell.c +2 -2
index 2e91477..2e3c778e 100644
@@ -34,9 +34,9 @@
 #include <linux/marvell_phy.h>
 #include <linux/of.h>
 
-#include <asm/io.h>
+#include <linux/io.h>
 #include <asm/irq.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>
 
 #define MII_MARVELL_PHY_PAGE		22
 
Signature · 1 line
1.7.9.5
maintainer Applied
#1 lore raw

From: Avinash kumar <[email protected]>
Date: Mon, 30 Sep 2013 09:36:44 +0530

Quoted 5 lines

removes following warnings-
drivers/net/phy/marvell.c:37: WARNING: Use #include <linux/io.h> instead of <asm/io.h> drivers/net/phy/marvell.c:39: WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>

Applied, thanks.

#2 lore raw
In reply to Avinash kumar

Hello.

Quoted 14 lines · Avinash kumar

removes following warnings-
drivers/net/phy/marvell.c:37: WARNING: Use #include <linux/io.h> instead of <asm/io.h> drivers/net/phy/marvell.c:39: WARNING: Use #include <linux/uaccess.h> instead of <asm/uaccess.h>

---
  drivers/net/phy/marvell.c |    4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
drivers/net/phy/marvell.c +0 -0
index 2e91477..2e3c778e 100644

drivers/net/phy/marvell.c line 39

Quoted 8 lines
drivers/net/phy/marvell.c +2 -2
@@ -34,9 +34,9 @@
  #include <linux/marvell_phy.h>
  #include <linux/of.h>
 
-#include <asm/io.h>
+#include <linux/io.h>
  #include <asm/irq.h>
-#include <asm/uaccess.h>
+#include <linux/uaccess.h>

You should move these #include's to the group of <linux/> #include's now.

WBR, Sergei