Commit 7c6f9747 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

net: vxge: fix spelling mistake in macro VXGE_HW_ERR_PRIVILAGED_OPEARATION

Rename VXGE_HW_ERR_PRIVILAGED_OPEARATION to VXGE_HW_ERR_PRIVILEGED_OPERATION
to fix spelling mistake.
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 75a839c3
...@@ -693,7 +693,7 @@ __vxge_hw_device_is_privilaged(u32 host_type, u32 func_id) ...@@ -693,7 +693,7 @@ __vxge_hw_device_is_privilaged(u32 host_type, u32 func_id)
VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM) VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM)
return VXGE_HW_OK; return VXGE_HW_OK;
else else
return VXGE_HW_ERR_PRIVILAGED_OPEARATION; return VXGE_HW_ERR_PRIVILEGED_OPERATION;
} }
/* /*
...@@ -1920,7 +1920,7 @@ enum vxge_hw_status vxge_hw_device_getpause_data(struct __vxge_hw_device *hldev, ...@@ -1920,7 +1920,7 @@ enum vxge_hw_status vxge_hw_device_getpause_data(struct __vxge_hw_device *hldev,
} }
if (!(hldev->access_rights & VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM)) { if (!(hldev->access_rights & VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM)) {
status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; status = VXGE_HW_ERR_PRIVILEGED_OPERATION;
goto exit; goto exit;
} }
...@@ -3153,7 +3153,7 @@ vxge_hw_mgmt_reg_read(struct __vxge_hw_device *hldev, ...@@ -3153,7 +3153,7 @@ vxge_hw_mgmt_reg_read(struct __vxge_hw_device *hldev,
case vxge_hw_mgmt_reg_type_mrpcim: case vxge_hw_mgmt_reg_type_mrpcim:
if (!(hldev->access_rights & if (!(hldev->access_rights &
VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM)) { VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM)) {
status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; status = VXGE_HW_ERR_PRIVILEGED_OPERATION;
break; break;
} }
if (offset > sizeof(struct vxge_hw_mrpcim_reg) - 8) { if (offset > sizeof(struct vxge_hw_mrpcim_reg) - 8) {
...@@ -3165,7 +3165,7 @@ vxge_hw_mgmt_reg_read(struct __vxge_hw_device *hldev, ...@@ -3165,7 +3165,7 @@ vxge_hw_mgmt_reg_read(struct __vxge_hw_device *hldev,
case vxge_hw_mgmt_reg_type_srpcim: case vxge_hw_mgmt_reg_type_srpcim:
if (!(hldev->access_rights & if (!(hldev->access_rights &
VXGE_HW_DEVICE_ACCESS_RIGHT_SRPCIM)) { VXGE_HW_DEVICE_ACCESS_RIGHT_SRPCIM)) {
status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; status = VXGE_HW_ERR_PRIVILEGED_OPERATION;
break; break;
} }
if (index > VXGE_HW_TITAN_SRPCIM_REG_SPACES - 1) { if (index > VXGE_HW_TITAN_SRPCIM_REG_SPACES - 1) {
...@@ -3279,7 +3279,7 @@ vxge_hw_mgmt_reg_write(struct __vxge_hw_device *hldev, ...@@ -3279,7 +3279,7 @@ vxge_hw_mgmt_reg_write(struct __vxge_hw_device *hldev,
case vxge_hw_mgmt_reg_type_mrpcim: case vxge_hw_mgmt_reg_type_mrpcim:
if (!(hldev->access_rights & if (!(hldev->access_rights &
VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM)) { VXGE_HW_DEVICE_ACCESS_RIGHT_MRPCIM)) {
status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; status = VXGE_HW_ERR_PRIVILEGED_OPERATION;
break; break;
} }
if (offset > sizeof(struct vxge_hw_mrpcim_reg) - 8) { if (offset > sizeof(struct vxge_hw_mrpcim_reg) - 8) {
...@@ -3291,7 +3291,7 @@ vxge_hw_mgmt_reg_write(struct __vxge_hw_device *hldev, ...@@ -3291,7 +3291,7 @@ vxge_hw_mgmt_reg_write(struct __vxge_hw_device *hldev,
case vxge_hw_mgmt_reg_type_srpcim: case vxge_hw_mgmt_reg_type_srpcim:
if (!(hldev->access_rights & if (!(hldev->access_rights &
VXGE_HW_DEVICE_ACCESS_RIGHT_SRPCIM)) { VXGE_HW_DEVICE_ACCESS_RIGHT_SRPCIM)) {
status = VXGE_HW_ERR_PRIVILAGED_OPEARATION; status = VXGE_HW_ERR_PRIVILEGED_OPERATION;
break; break;
} }
if (index > VXGE_HW_TITAN_SRPCIM_REG_SPACES - 1) { if (index > VXGE_HW_TITAN_SRPCIM_REG_SPACES - 1) {
......
...@@ -127,7 +127,7 @@ enum vxge_hw_status { ...@@ -127,7 +127,7 @@ enum vxge_hw_status {
VXGE_HW_ERR_INVALID_TCODE = VXGE_HW_BASE_ERR + 14, VXGE_HW_ERR_INVALID_TCODE = VXGE_HW_BASE_ERR + 14,
VXGE_HW_ERR_INVALID_BLOCK_SIZE = VXGE_HW_BASE_ERR + 15, VXGE_HW_ERR_INVALID_BLOCK_SIZE = VXGE_HW_BASE_ERR + 15,
VXGE_HW_ERR_INVALID_STATE = VXGE_HW_BASE_ERR + 16, VXGE_HW_ERR_INVALID_STATE = VXGE_HW_BASE_ERR + 16,
VXGE_HW_ERR_PRIVILAGED_OPEARATION = VXGE_HW_BASE_ERR + 17, VXGE_HW_ERR_PRIVILEGED_OPERATION = VXGE_HW_BASE_ERR + 17,
VXGE_HW_ERR_INVALID_PORT = VXGE_HW_BASE_ERR + 18, VXGE_HW_ERR_INVALID_PORT = VXGE_HW_BASE_ERR + 18,
VXGE_HW_ERR_FIFO = VXGE_HW_BASE_ERR + 19, VXGE_HW_ERR_FIFO = VXGE_HW_BASE_ERR + 19,
VXGE_HW_ERR_VPATH = VXGE_HW_BASE_ERR + 20, VXGE_HW_ERR_VPATH = VXGE_HW_BASE_ERR + 20,
......
...@@ -276,7 +276,7 @@ static void vxge_get_ethtool_stats(struct net_device *dev, ...@@ -276,7 +276,7 @@ static void vxge_get_ethtool_stats(struct net_device *dev,
*ptr++ = 0; *ptr++ = 0;
status = vxge_hw_device_xmac_stats_get(hldev, xmac_stats); status = vxge_hw_device_xmac_stats_get(hldev, xmac_stats);
if (status != VXGE_HW_OK) { if (status != VXGE_HW_OK) {
if (status != VXGE_HW_ERR_PRIVILAGED_OPEARATION) { if (status != VXGE_HW_ERR_PRIVILEGED_OPERATION) {
vxge_debug_init(VXGE_ERR, vxge_debug_init(VXGE_ERR,
"%s : %d Failure in getting xmac stats", "%s : %d Failure in getting xmac stats",
__func__, __LINE__); __func__, __LINE__);
......
...@@ -3484,11 +3484,11 @@ static int vxge_device_register(struct __vxge_hw_device *hldev, ...@@ -3484,11 +3484,11 @@ static int vxge_device_register(struct __vxge_hw_device *hldev,
0, 0,
&stat); &stat);
if (status == VXGE_HW_ERR_PRIVILAGED_OPEARATION) if (status == VXGE_HW_ERR_PRIVILEGED_OPERATION)
vxge_debug_init( vxge_debug_init(
vxge_hw_device_trace_level_get(hldev), vxge_hw_device_trace_level_get(hldev),
"%s: device stats clear returns" "%s: device stats clear returns"
"VXGE_HW_ERR_PRIVILAGED_OPEARATION", ndev->name); "VXGE_HW_ERR_PRIVILEGED_OPERATION", ndev->name);
vxge_debug_entryexit(vxge_hw_device_trace_level_get(hldev), vxge_debug_entryexit(vxge_hw_device_trace_level_get(hldev),
"%s: %s:%d Exiting...", "%s: %s:%d Exiting...",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment