diff options
| author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-12-06 09:30:56 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2012-12-07 14:22:22 -0500 |
| commit | 1dd06ae8db716e17ec7e06244b858606edf378c0 (patch) | |
| tree | ae4116a9b029ab570a58fae5275cfbb3af6a1d64 /drivers/net/ethernet/3com | |
| parent | 45122ca26ced7fae41049326a3797a73f961db2e (diff) | |
drivers/net: fix up function prototypes after __dev* removals
The __dev* removal patches for the network drivers ended up messing up
the function prototypes for a bunch of drivers. This patch fixes all of
them back up to be properly aligned.
Bonus is that this almost removes 100 lines of code, always a nice
surprise.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/3com')
| -rw-r--r-- | drivers/net/ethernet/3com/3c509.c | 11 | ||||
| -rw-r--r-- | drivers/net/ethernet/3com/3c59x.c | 7 |
2 files changed, 7 insertions, 11 deletions
diff --git a/drivers/net/ethernet/3com/3c509.c b/drivers/net/ethernet/3com/3c509.c index 9300185da976..633c709b9d99 100644 --- a/drivers/net/ethernet/3com/3c509.c +++ b/drivers/net/ethernet/3com/3c509.c | |||
| @@ -270,9 +270,8 @@ static int el3_isa_id_sequence(__be16 *phys_addr) | |||
| 270 | 270 | ||
| 271 | } | 271 | } |
| 272 | 272 | ||
| 273 | static void el3_dev_fill(struct net_device *dev, __be16 *phys_addr, | 273 | static void el3_dev_fill(struct net_device *dev, __be16 *phys_addr, int ioaddr, |
| 274 | int ioaddr, int irq, int if_port, | 274 | int irq, int if_port, enum el3_cardtype type) |
| 275 | enum el3_cardtype type) | ||
| 276 | { | 275 | { |
| 277 | struct el3_private *lp = netdev_priv(dev); | 276 | struct el3_private *lp = netdev_priv(dev); |
| 278 | 277 | ||
| @@ -283,8 +282,7 @@ static void el3_dev_fill(struct net_device *dev, __be16 *phys_addr, | |||
| 283 | lp->type = type; | 282 | lp->type = type; |
| 284 | } | 283 | } |
| 285 | 284 | ||
| 286 | static int el3_isa_match(struct device *pdev, | 285 | static int el3_isa_match(struct device *pdev, unsigned int ndev) |
| 287 | unsigned int ndev) | ||
| 288 | { | 286 | { |
| 289 | struct net_device *dev; | 287 | struct net_device *dev; |
| 290 | int ioaddr, isa_irq, if_port, err; | 288 | int ioaddr, isa_irq, if_port, err; |
| @@ -406,8 +404,7 @@ static struct pnp_device_id el3_pnp_ids[] = { | |||
| 406 | }; | 404 | }; |
| 407 | MODULE_DEVICE_TABLE(pnp, el3_pnp_ids); | 405 | MODULE_DEVICE_TABLE(pnp, el3_pnp_ids); |
| 408 | 406 | ||
| 409 | static int el3_pnp_probe(struct pnp_dev *pdev, | 407 | static int el3_pnp_probe(struct pnp_dev *pdev, const struct pnp_device_id *id) |
| 410 | const struct pnp_device_id *id) | ||
| 411 | { | 408 | { |
| 412 | short i; | 409 | short i; |
| 413 | int ioaddr, irq, if_port; | 410 | int ioaddr, irq, if_port; |
diff --git a/drivers/net/ethernet/3com/3c59x.c b/drivers/net/ethernet/3com/3c59x.c index 658e224b3613..ed0feb3cc6fa 100644 --- a/drivers/net/ethernet/3com/3c59x.c +++ b/drivers/net/ethernet/3com/3c59x.c | |||
| @@ -1001,7 +1001,7 @@ static int __init vortex_eisa_init(void) | |||
| 1001 | 1001 | ||
| 1002 | /* returns count (>= 0), or negative on error */ | 1002 | /* returns count (>= 0), or negative on error */ |
| 1003 | static int vortex_init_one(struct pci_dev *pdev, | 1003 | static int vortex_init_one(struct pci_dev *pdev, |
| 1004 | const struct pci_device_id *ent) | 1004 | const struct pci_device_id *ent) |
| 1005 | { | 1005 | { |
| 1006 | int rc, unit, pci_bar; | 1006 | int rc, unit, pci_bar; |
| 1007 | struct vortex_chip_info *vci; | 1007 | struct vortex_chip_info *vci; |
| @@ -1088,9 +1088,8 @@ static const struct net_device_ops vortex_netdev_ops = { | |||
| 1088 | * | 1088 | * |
| 1089 | * NOTE: pdev can be NULL, for the case of a Compaq device | 1089 | * NOTE: pdev can be NULL, for the case of a Compaq device |
| 1090 | */ | 1090 | */ |
| 1091 | static int vortex_probe1(struct device *gendev, | 1091 | static int vortex_probe1(struct device *gendev, void __iomem *ioaddr, int irq, |
| 1092 | void __iomem *ioaddr, int irq, | 1092 | int chip_idx, int card_idx) |
| 1093 | int chip_idx, int card_idx) | ||
| 1094 | { | 1093 | { |
| 1095 | struct vortex_private *vp; | 1094 | struct vortex_private *vp; |
| 1096 | int option; | 1095 | int option; |
