diff options
Diffstat (limited to 'drivers/net/ethernet/toshiba/ps3_gelic_net.c')
| -rw-r--r-- | drivers/net/ethernet/toshiba/ps3_gelic_net.c | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/drivers/net/ethernet/toshiba/ps3_gelic_net.c b/drivers/net/ethernet/toshiba/ps3_gelic_net.c index 5ee82a77723b..e321d0b6fc88 100644 --- a/drivers/net/ethernet/toshiba/ps3_gelic_net.c +++ b/drivers/net/ethernet/toshiba/ps3_gelic_net.c | |||
| @@ -234,10 +234,9 @@ static void gelic_card_free_chain(struct gelic_card *card, | |||
| 234 | * | 234 | * |
| 235 | * returns 0 on success, <0 on failure | 235 | * returns 0 on success, <0 on failure |
| 236 | */ | 236 | */ |
| 237 | static int __devinit gelic_card_init_chain(struct gelic_card *card, | 237 | static int gelic_card_init_chain(struct gelic_card *card, |
| 238 | struct gelic_descr_chain *chain, | 238 | struct gelic_descr_chain *chain, |
| 239 | struct gelic_descr *start_descr, | 239 | struct gelic_descr *start_descr, int no) |
| 240 | int no) | ||
| 241 | { | 240 | { |
| 242 | int i; | 241 | int i; |
| 243 | struct gelic_descr *descr; | 242 | struct gelic_descr *descr; |
| @@ -428,7 +427,7 @@ rewind: | |||
| 428 | * | 427 | * |
| 429 | * returns 0 on success, < 0 on failure | 428 | * returns 0 on success, < 0 on failure |
| 430 | */ | 429 | */ |
| 431 | static int __devinit gelic_card_alloc_rx_skbs(struct gelic_card *card) | 430 | static int gelic_card_alloc_rx_skbs(struct gelic_card *card) |
| 432 | { | 431 | { |
| 433 | struct gelic_descr_chain *chain; | 432 | struct gelic_descr_chain *chain; |
| 434 | int ret; | 433 | int ret; |
| @@ -1468,8 +1467,8 @@ static const struct net_device_ops gelic_netdevice_ops = { | |||
| 1468 | * | 1467 | * |
| 1469 | * fills out function pointers in the net_device structure | 1468 | * fills out function pointers in the net_device structure |
| 1470 | */ | 1469 | */ |
| 1471 | static void __devinit gelic_ether_setup_netdev_ops(struct net_device *netdev, | 1470 | static void gelic_ether_setup_netdev_ops(struct net_device *netdev, |
| 1472 | struct napi_struct *napi) | 1471 | struct napi_struct *napi) |
| 1473 | { | 1472 | { |
| 1474 | netdev->watchdog_timeo = GELIC_NET_WATCHDOG_TIMEOUT; | 1473 | netdev->watchdog_timeo = GELIC_NET_WATCHDOG_TIMEOUT; |
| 1475 | /* NAPI */ | 1474 | /* NAPI */ |
| @@ -1489,8 +1488,7 @@ static void __devinit gelic_ether_setup_netdev_ops(struct net_device *netdev, | |||
| 1489 | * gelic_ether_setup_netdev initializes the net_device structure | 1488 | * gelic_ether_setup_netdev initializes the net_device structure |
| 1490 | * and register it. | 1489 | * and register it. |
| 1491 | **/ | 1490 | **/ |
| 1492 | int __devinit gelic_net_setup_netdev(struct net_device *netdev, | 1491 | int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card) |
| 1493 | struct gelic_card *card) | ||
| 1494 | { | 1492 | { |
| 1495 | int status; | 1493 | int status; |
| 1496 | u64 v1, v2; | 1494 | u64 v1, v2; |
| @@ -1542,7 +1540,7 @@ int __devinit gelic_net_setup_netdev(struct net_device *netdev, | |||
| 1542 | * the card and net_device structures are linked to each other | 1540 | * the card and net_device structures are linked to each other |
| 1543 | */ | 1541 | */ |
| 1544 | #define GELIC_ALIGN (32) | 1542 | #define GELIC_ALIGN (32) |
| 1545 | static struct gelic_card * __devinit gelic_alloc_card_net(struct net_device **netdev) | 1543 | static struct gelic_card *gelic_alloc_card_net(struct net_device **netdev) |
| 1546 | { | 1544 | { |
| 1547 | struct gelic_card *card; | 1545 | struct gelic_card *card; |
| 1548 | struct gelic_port *port; | 1546 | struct gelic_port *port; |
| @@ -1593,7 +1591,7 @@ static struct gelic_card * __devinit gelic_alloc_card_net(struct net_device **ne | |||
| 1593 | return card; | 1591 | return card; |
| 1594 | } | 1592 | } |
| 1595 | 1593 | ||
| 1596 | static void __devinit gelic_card_get_vlan_info(struct gelic_card *card) | 1594 | static void gelic_card_get_vlan_info(struct gelic_card *card) |
| 1597 | { | 1595 | { |
| 1598 | u64 v1, v2; | 1596 | u64 v1, v2; |
| 1599 | int status; | 1597 | int status; |
| @@ -1667,7 +1665,7 @@ static void __devinit gelic_card_get_vlan_info(struct gelic_card *card) | |||
| 1667 | /** | 1665 | /** |
| 1668 | * ps3_gelic_driver_probe - add a device to the control of this driver | 1666 | * ps3_gelic_driver_probe - add a device to the control of this driver |
| 1669 | */ | 1667 | */ |
| 1670 | static int __devinit ps3_gelic_driver_probe(struct ps3_system_bus_device *dev) | 1668 | static int ps3_gelic_driver_probe(struct ps3_system_bus_device *dev) |
| 1671 | { | 1669 | { |
| 1672 | struct gelic_card *card; | 1670 | struct gelic_card *card; |
| 1673 | struct net_device *netdev; | 1671 | struct net_device *netdev; |
