diff options
-rw-r--r-- | drivers/net/ibmveth.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/drivers/net/ibmveth.c b/drivers/net/ibmveth.c index 0573fcfcb2c4..3bec0f733f01 100644 --- a/drivers/net/ibmveth.c +++ b/drivers/net/ibmveth.c | |||
@@ -93,7 +93,7 @@ static void ibmveth_proc_unregister_driver(void); | |||
93 | static void ibmveth_proc_register_adapter(struct ibmveth_adapter *adapter); | 93 | static void ibmveth_proc_register_adapter(struct ibmveth_adapter *adapter); |
94 | static void ibmveth_proc_unregister_adapter(struct ibmveth_adapter *adapter); | 94 | static void ibmveth_proc_unregister_adapter(struct ibmveth_adapter *adapter); |
95 | static irqreturn_t ibmveth_interrupt(int irq, void *dev_instance); | 95 | static irqreturn_t ibmveth_interrupt(int irq, void *dev_instance); |
96 | static inline void ibmveth_rxq_harvest_buffer(struct ibmveth_adapter *adapter); | 96 | static void ibmveth_rxq_harvest_buffer(struct ibmveth_adapter *adapter); |
97 | static struct kobj_type ktype_veth_pool; | 97 | static struct kobj_type ktype_veth_pool; |
98 | 98 | ||
99 | #ifdef CONFIG_PROC_FS | 99 | #ifdef CONFIG_PROC_FS |
@@ -389,7 +389,7 @@ static void ibmveth_rxq_recycle_buffer(struct ibmveth_adapter *adapter) | |||
389 | } | 389 | } |
390 | } | 390 | } |
391 | 391 | ||
392 | static inline void ibmveth_rxq_harvest_buffer(struct ibmveth_adapter *adapter) | 392 | static void ibmveth_rxq_harvest_buffer(struct ibmveth_adapter *adapter) |
393 | { | 393 | { |
394 | ibmveth_remove_buffer_from_pool(adapter, adapter->rx_queue.queue_addr[adapter->rx_queue.index].correlator); | 394 | ibmveth_remove_buffer_from_pool(adapter, adapter->rx_queue.queue_addr[adapter->rx_queue.index].correlator); |
395 | 395 | ||
@@ -953,14 +953,16 @@ static int __devinit ibmveth_probe(struct vio_dev *dev, const struct vio_device_ | |||
953 | ibmveth_debug_printk_no_adapter("entering ibmveth_probe for UA 0x%x\n", | 953 | ibmveth_debug_printk_no_adapter("entering ibmveth_probe for UA 0x%x\n", |
954 | dev->unit_address); | 954 | dev->unit_address); |
955 | 955 | ||
956 | mac_addr_p = (unsigned char *) vio_get_attribute(dev, VETH_MAC_ADDR, 0); | 956 | mac_addr_p = (unsigned char *) vio_get_attribute(dev, |
957 | VETH_MAC_ADDR, NULL); | ||
957 | if(!mac_addr_p) { | 958 | if(!mac_addr_p) { |
958 | printk(KERN_ERR "(%s:%3.3d) ERROR: Can't find VETH_MAC_ADDR " | 959 | printk(KERN_ERR "(%s:%3.3d) ERROR: Can't find VETH_MAC_ADDR " |
959 | "attribute\n", __FILE__, __LINE__); | 960 | "attribute\n", __FILE__, __LINE__); |
960 | return 0; | 961 | return 0; |
961 | } | 962 | } |
962 | 963 | ||
963 | mcastFilterSize_p= (unsigned int *) vio_get_attribute(dev, VETH_MCAST_FILTER_SIZE, 0); | 964 | mcastFilterSize_p = (unsigned int *) vio_get_attribute(dev, |
965 | VETH_MCAST_FILTER_SIZE, NULL); | ||
964 | if(!mcastFilterSize_p) { | 966 | if(!mcastFilterSize_p) { |
965 | printk(KERN_ERR "(%s:%3.3d) ERROR: Can't find " | 967 | printk(KERN_ERR "(%s:%3.3d) ERROR: Can't find " |
966 | "VETH_MCAST_FILTER_SIZE attribute\n", | 968 | "VETH_MCAST_FILTER_SIZE attribute\n", |