diff options
Diffstat (limited to 'drivers/net/ps3_gelic_net.c')
| -rw-r--r-- | drivers/net/ps3_gelic_net.c | 11 | 
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/net/ps3_gelic_net.c b/drivers/net/ps3_gelic_net.c index a849f6f23a1..022317db467 100644 --- a/drivers/net/ps3_gelic_net.c +++ b/drivers/net/ps3_gelic_net.c @@ -30,6 +30,7 @@  #include <linux/kernel.h>  #include <linux/module.h> +#include <linux/slab.h>  #include <linux/etherdevice.h>  #include <linux/ethtool.h> @@ -326,7 +327,7 @@ static int gelic_descr_prepare_rx(struct gelic_card *card,  	unsigned int bufsize;  	if (gelic_descr_get_status(descr) !=  GELIC_DESCR_DMA_NOT_IN_USE) -		dev_info(ctodev(card), "%s: ERROR status \n", __func__); +		dev_info(ctodev(card), "%s: ERROR status\n", __func__);  	/* we need to round up the buffer size to a multiple of 128 */  	bufsize = ALIGN(GELIC_NET_MAX_MTU, GELIC_NET_RXBUF_ALIGN); @@ -546,7 +547,7 @@ out:  void gelic_net_set_multi(struct net_device *netdev)  {  	struct gelic_card *card = netdev_card(netdev); -	struct dev_mc_list *mc; +	struct netdev_hw_addr *ha;  	unsigned int i;  	uint8_t *p;  	u64 addr; @@ -580,9 +581,9 @@ void gelic_net_set_multi(struct net_device *netdev)  	}  	/* set multicast addresses */ -	netdev_for_each_mc_addr(mc, netdev) { +	netdev_for_each_mc_addr(ha, netdev) {  		addr = 0; -		p = mc->dmi_addr; +		p = ha->addr;  		for (i = 0; i < ETH_ALEN; i++) {  			addr <<= 8;  			addr |= *p++; @@ -1434,7 +1435,7 @@ static void gelic_net_tx_timeout_task(struct work_struct *work)  		container_of(work, struct gelic_card, tx_timeout_task);  	struct net_device *netdev = card->netdev[GELIC_PORT_ETHERNET_0]; -	dev_info(ctodev(card), "%s:Timed out. Restarting... \n", __func__); +	dev_info(ctodev(card), "%s:Timed out. Restarting...\n", __func__);  	if (!(netdev->flags & IFF_UP))  		goto out;  |