atheros: fix includes
Remove some unnecessary includes and use <linux/foo.h> instead of <asm/foo.h> when it possible as suggested by checkpatch. Signed-off-by: Sergey Ryazanov <ryazanov.s.a@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41089 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
d5ce5c199b
commit
3b68214e57
|
@ -106,9 +106,9 @@
|
||||||
+#include <linux/random.h>
|
+#include <linux/random.h>
|
||||||
+#include <linux/etherdevice.h>
|
+#include <linux/etherdevice.h>
|
||||||
+#include <linux/irq.h>
|
+#include <linux/irq.h>
|
||||||
|
+#include <linux/io.h>
|
||||||
+#include <asm/irq_cpu.h>
|
+#include <asm/irq_cpu.h>
|
||||||
+#include <asm/reboot.h>
|
+#include <asm/reboot.h>
|
||||||
+#include <asm/io.h>
|
|
||||||
+
|
+
|
||||||
+#include <ar231x_platform.h>
|
+#include <ar231x_platform.h>
|
||||||
+#include "devices.h"
|
+#include "devices.h"
|
||||||
|
@ -1559,7 +1559,7 @@
|
||||||
+#include <asm/reboot.h>
|
+#include <asm/reboot.h>
|
||||||
+#include <asm/time.h>
|
+#include <asm/time.h>
|
||||||
+#include <linux/irq.h>
|
+#include <linux/irq.h>
|
||||||
+#include <asm/io.h>
|
+#include <linux/io.h>
|
||||||
+
|
+
|
||||||
+#include <ar231x_platform.h>
|
+#include <ar231x_platform.h>
|
||||||
+#include <ar5312_regs.h>
|
+#include <ar5312_regs.h>
|
||||||
|
@ -2141,7 +2141,7 @@
|
||||||
+#include <asm/reboot.h>
|
+#include <asm/reboot.h>
|
||||||
+#include <asm/time.h>
|
+#include <asm/time.h>
|
||||||
+#include <linux/irq.h>
|
+#include <linux/irq.h>
|
||||||
+#include <asm/io.h>
|
+#include <linux/io.h>
|
||||||
+
|
+
|
||||||
+#include <ar231x_platform.h>
|
+#include <ar231x_platform.h>
|
||||||
+#include <ar2315_regs.h>
|
+#include <ar2315_regs.h>
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
+obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o
|
+obj-$(CONFIG_ATHEROS_AR2315_PCI) += pci.o
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/arch/mips/ar231x/pci.c
|
+++ b/arch/mips/ar231x/pci.c
|
||||||
@@ -0,0 +1,230 @@
|
@@ -0,0 +1,228 @@
|
||||||
+/*
|
+/*
|
||||||
+ * This program is free software; you can redistribute it and/or
|
+ * This program is free software; you can redistribute it and/or
|
||||||
+ * modify it under the terms of the GNU General Public License
|
+ * modify it under the terms of the GNU General Public License
|
||||||
|
@ -32,10 +32,8 @@
|
||||||
+#include <linux/spinlock.h>
|
+#include <linux/spinlock.h>
|
||||||
+#include <linux/delay.h>
|
+#include <linux/delay.h>
|
||||||
+#include <linux/irq.h>
|
+#include <linux/irq.h>
|
||||||
+#include <asm/bootinfo.h>
|
+#include <linux/io.h>
|
||||||
+#include <asm/paccess.h>
|
+#include <asm/paccess.h>
|
||||||
+#include <asm/irq_cpu.h>
|
|
||||||
+#include <asm/io.h>
|
|
||||||
+#include <ar231x_platform.h>
|
+#include <ar231x_platform.h>
|
||||||
+#include <ar231x.h>
|
+#include <ar231x.h>
|
||||||
+#include <ar2315_regs.h>
|
+#include <ar2315_regs.h>
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
+obj-$(CONFIG_NET_VENDOR_AR231X) += ar231x.o
|
+obj-$(CONFIG_NET_VENDOR_AR231X) += ar231x.o
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/net/ethernet/ar231x/ar231x.c
|
+++ b/drivers/net/ethernet/ar231x/ar231x.c
|
||||||
@@ -0,0 +1,1260 @@
|
@@ -0,0 +1,1256 @@
|
||||||
+/*
|
+/*
|
||||||
+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
|
+ * ar231x.c: Linux driver for the Atheros AR231x Ethernet device.
|
||||||
+ *
|
+ *
|
||||||
|
@ -75,16 +75,12 @@
|
||||||
+#include <linux/ethtool.h>
|
+#include <linux/ethtool.h>
|
||||||
+#include <linux/ctype.h>
|
+#include <linux/ctype.h>
|
||||||
+#include <linux/platform_device.h>
|
+#include <linux/platform_device.h>
|
||||||
|
+#include <linux/io.h>
|
||||||
|
+#include <linux/uaccess.h>
|
||||||
+
|
+
|
||||||
+#include <net/sock.h>
|
+#include <net/sock.h>
|
||||||
+#include <net/ip.h>
|
+#include <net/ip.h>
|
||||||
+
|
+
|
||||||
+#include <asm/io.h>
|
|
||||||
+#include <asm/irq.h>
|
|
||||||
+#include <asm/byteorder.h>
|
|
||||||
+#include <asm/uaccess.h>
|
|
||||||
+#include <asm/bootinfo.h>
|
|
||||||
+
|
|
||||||
+#define AR2313_MTU 1692
|
+#define AR2313_MTU 1692
|
||||||
+#define AR2313_PRIOS 1
|
+#define AR2313_PRIOS 1
|
||||||
+#define AR2313_QUEUES (2*AR2313_PRIOS)
|
+#define AR2313_QUEUES (2*AR2313_PRIOS)
|
||||||
|
@ -1295,7 +1291,7 @@
|
||||||
+
|
+
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/net/ethernet/ar231x/ar231x.h
|
+++ b/drivers/net/ethernet/ar231x/ar231x.h
|
||||||
@@ -0,0 +1,289 @@
|
@@ -0,0 +1,288 @@
|
||||||
+/*
|
+/*
|
||||||
+ * ar231x.h: Linux driver for the Atheros AR231x Ethernet device.
|
+ * ar231x.h: Linux driver for the Atheros AR231x Ethernet device.
|
||||||
+ *
|
+ *
|
||||||
|
@ -1318,7 +1314,6 @@
|
||||||
+#include <linux/interrupt.h>
|
+#include <linux/interrupt.h>
|
||||||
+#include <generated/autoconf.h>
|
+#include <generated/autoconf.h>
|
||||||
+#include <linux/bitops.h>
|
+#include <linux/bitops.h>
|
||||||
+#include <asm/bootinfo.h>
|
|
||||||
+#include <ar231x_platform.h>
|
+#include <ar231x_platform.h>
|
||||||
+
|
+
|
||||||
+/* probe link timer - 5 secs */
|
+/* probe link timer - 5 secs */
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/mtd/devices/ar2315.c
|
+++ b/drivers/mtd/devices/ar2315.c
|
||||||
@@ -0,0 +1,515 @@
|
@@ -0,0 +1,514 @@
|
||||||
+
|
+
|
||||||
+/*
|
+/*
|
||||||
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315
|
+ * MTD driver for the SPI Flash Memory support on Atheros AR2315
|
||||||
|
@ -52,8 +52,7 @@
|
||||||
+#include <linux/sched.h>
|
+#include <linux/sched.h>
|
||||||
+#include <linux/root_dev.h>
|
+#include <linux/root_dev.h>
|
||||||
+#include <linux/delay.h>
|
+#include <linux/delay.h>
|
||||||
+#include <asm/delay.h>
|
+#include <linux/io.h>
|
||||||
+#include <asm/io.h>
|
|
||||||
+
|
+
|
||||||
+#include <ar2315_spiflash.h>
|
+#include <ar2315_spiflash.h>
|
||||||
+#include <ar231x_platform.h>
|
+#include <ar231x_platform.h>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/drivers/watchdog/ar2315-wtd.c
|
+++ b/drivers/watchdog/ar2315-wtd.c
|
||||||
@@ -0,0 +1,200 @@
|
@@ -0,0 +1,199 @@
|
||||||
+/*
|
+/*
|
||||||
+ * This program is free software; you can redistribute it and/or modify
|
+ * This program is free software; you can redistribute it and/or modify
|
||||||
+ * it under the terms of the GNU General Public License as published by
|
+ * it under the terms of the GNU General Public License as published by
|
||||||
|
@ -32,10 +32,9 @@
|
||||||
+#include <linux/reboot.h>
|
+#include <linux/reboot.h>
|
||||||
+#include <linux/init.h>
|
+#include <linux/init.h>
|
||||||
+#include <linux/platform_device.h>
|
+#include <linux/platform_device.h>
|
||||||
|
+#include <linux/io.h>
|
||||||
|
+#include <linux/uaccess.h>
|
||||||
+
|
+
|
||||||
+#include <asm/io.h>
|
|
||||||
+#include <asm/uaccess.h>
|
|
||||||
+#include <asm/addrspace.h>
|
|
||||||
+#include <ar231x_platform.h>
|
+#include <ar231x_platform.h>
|
||||||
+#include <ar2315_regs.h>
|
+#include <ar2315_regs.h>
|
||||||
+#include <ar231x.h>
|
+#include <ar231x.h>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/drivers/net/ethernet/ar231x/ar231x.c
|
--- a/drivers/net/ethernet/ar231x/ar231x.c
|
||||||
+++ b/drivers/net/ethernet/ar231x/ar231x.c
|
+++ b/drivers/net/ethernet/ar231x/ar231x.c
|
||||||
@@ -150,6 +150,7 @@ static int ar231x_mdiobus_write(struct m
|
@@ -146,6 +146,7 @@ static int ar231x_mdiobus_write(struct m
|
||||||
static int ar231x_mdiobus_reset(struct mii_bus *bus);
|
static int ar231x_mdiobus_reset(struct mii_bus *bus);
|
||||||
static int ar231x_mdiobus_probe (struct net_device *dev);
|
static int ar231x_mdiobus_probe (struct net_device *dev);
|
||||||
static void ar231x_adjust_link(struct net_device *dev);
|
static void ar231x_adjust_link(struct net_device *dev);
|
||||||
|
@ -8,7 +8,7 @@
|
||||||
|
|
||||||
#ifndef ERR
|
#ifndef ERR
|
||||||
#define ERR(fmt, args...) printk("%s: " fmt, __func__, ##args)
|
#define ERR(fmt, args...) printk("%s: " fmt, __func__, ##args)
|
||||||
@@ -182,6 +183,32 @@ static const struct net_device_ops ar231
|
@@ -178,6 +179,32 @@ static const struct net_device_ops ar231
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
int ar231x_probe(struct platform_device *pdev)
|
int ar231x_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct net_device *dev;
|
struct net_device *dev;
|
||||||
@@ -297,6 +324,23 @@ int ar231x_probe(struct platform_device
|
@@ -293,6 +320,23 @@ int ar231x_probe(struct platform_device
|
||||||
|
|
||||||
mdiobus_register(sp->mii_bus);
|
mdiobus_register(sp->mii_bus);
|
||||||
|
|
||||||
|
@ -65,7 +65,7 @@
|
||||||
if (ar231x_mdiobus_probe(dev) != 0) {
|
if (ar231x_mdiobus_probe(dev) != 0) {
|
||||||
printk(KERN_ERR "%s: mdiobus_probe failed\n", dev->name);
|
printk(KERN_ERR "%s: mdiobus_probe failed\n", dev->name);
|
||||||
rx_tasklet_cleanup(dev);
|
rx_tasklet_cleanup(dev);
|
||||||
@@ -353,8 +397,10 @@ static int ar231x_remove(struct platform
|
@@ -349,8 +393,10 @@ static int ar231x_remove(struct platform
|
||||||
rx_tasklet_cleanup(dev);
|
rx_tasklet_cleanup(dev);
|
||||||
ar231x_init_cleanup(dev);
|
ar231x_init_cleanup(dev);
|
||||||
unregister_netdev(dev);
|
unregister_netdev(dev);
|
||||||
|
@ -78,7 +78,7 @@
|
||||||
kfree(dev);
|
kfree(dev);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -1115,6 +1161,9 @@ static int ar231x_ioctl(struct net_devic
|
@@ -1111,6 +1157,9 @@ static int ar231x_ioctl(struct net_devic
|
||||||
struct ar231x_private *sp = netdev_priv(dev);
|
struct ar231x_private *sp = netdev_priv(dev);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
--- a/drivers/net/ethernet/ar231x/ar231x.c
|
--- a/drivers/net/ethernet/ar231x/ar231x.c
|
||||||
+++ b/drivers/net/ethernet/ar231x/ar231x.c
|
+++ b/drivers/net/ethernet/ar231x/ar231x.c
|
||||||
@@ -1277,7 +1277,7 @@ static int ar231x_mdiobus_probe (struct
|
@@ -1273,7 +1273,7 @@ static int ar231x_mdiobus_probe (struct
|
||||||
BUG_ON(!phydev);
|
BUG_ON(!phydev);
|
||||||
BUG_ON(phydev->attached_dev);
|
BUG_ON(phydev->attached_dev);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue