Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[pandora-kernel.git] / drivers / net / sfc / net_driver.h
index 6b2e440..ba636e0 100644 (file)
@@ -836,7 +836,7 @@ static inline const char *efx_dev_name(struct efx_nic *efx)
 
 static inline unsigned int efx_port_num(struct efx_nic *efx)
 {
-       return efx->port_num;
+       return efx->net_dev->dev_id;
 }
 
 /**