diff options
author | Dan Williams <dan.j.williams@intel.com> | 2013-10-16 15:25:44 -0400 |
---|---|---|
committer | Sarah Sharp <sarah.a.sharp@linux.intel.com> | 2013-10-16 18:49:49 -0400 |
commit | a2cdc3432c361bb885476d1c625e22b518e0bc07 (patch) | |
tree | 7e948f717ea62248236d08fce910a9e7c697ab3c /drivers/usb/host | |
parent | 4e341818ee9ee8d435977131cc7ce9e89c053fa6 (diff) |
usb: xhci: remove the unused ->address field
Only used for debug output, so we don't need to save it.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci.c | 10 | ||||
-rw-r--r-- | drivers/usb/host/xhci.h | 2 |
2 files changed, 2 insertions, 10 deletions
diff --git a/drivers/usb/host/xhci.c b/drivers/usb/host/xhci.c index d3f6abbda67e..b41c24c58bb9 100644 --- a/drivers/usb/host/xhci.c +++ b/drivers/usb/host/xhci.c | |||
@@ -3704,9 +3704,6 @@ disable_slot: | |||
3704 | * the device). | 3704 | * the device). |
3705 | * We should be protected by the usb_address0_mutex in khubd's hub_port_init, so | 3705 | * We should be protected by the usb_address0_mutex in khubd's hub_port_init, so |
3706 | * we should only issue and wait on one address command at the same time. | 3706 | * we should only issue and wait on one address command at the same time. |
3707 | * | ||
3708 | * We add one to the device address issued by the hardware because the USB core | ||
3709 | * uses address 1 for the root hubs (even though they're not really devices). | ||
3710 | */ | 3707 | */ |
3711 | int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev) | 3708 | int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev) |
3712 | { | 3709 | { |
@@ -3851,16 +3848,13 @@ int xhci_address_device(struct usb_hcd *hcd, struct usb_device *udev) | |||
3851 | slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); | 3848 | slot_ctx = xhci_get_slot_ctx(xhci, virt_dev->out_ctx); |
3852 | trace_xhci_address_ctx(xhci, virt_dev->out_ctx, | 3849 | trace_xhci_address_ctx(xhci, virt_dev->out_ctx, |
3853 | slot_ctx->dev_info >> 27); | 3850 | slot_ctx->dev_info >> 27); |
3854 | /* Use kernel assigned address for devices; store xHC assigned | ||
3855 | * address locally. */ | ||
3856 | virt_dev->address = (le32_to_cpu(slot_ctx->dev_state) & DEV_ADDR_MASK) | ||
3857 | + 1; | ||
3858 | /* Zero the input context control for later use */ | 3851 | /* Zero the input context control for later use */ |
3859 | ctrl_ctx->add_flags = 0; | 3852 | ctrl_ctx->add_flags = 0; |
3860 | ctrl_ctx->drop_flags = 0; | 3853 | ctrl_ctx->drop_flags = 0; |
3861 | 3854 | ||
3862 | xhci_dbg_trace(xhci, trace_xhci_dbg_address, | 3855 | xhci_dbg_trace(xhci, trace_xhci_dbg_address, |
3863 | "Internal device address = %d", virt_dev->address); | 3856 | "Internal device address = %d", |
3857 | le32_to_cpu(slot_ctx->dev_state) & DEV_ADDR_MASK); | ||
3864 | 3858 | ||
3865 | return 0; | 3859 | return 0; |
3866 | } | 3860 | } |
diff --git a/drivers/usb/host/xhci.h b/drivers/usb/host/xhci.h index 466081934b68..2c701c60cbf4 100644 --- a/drivers/usb/host/xhci.h +++ b/drivers/usb/host/xhci.h | |||
@@ -935,8 +935,6 @@ struct xhci_virt_device { | |||
935 | /* Rings saved to ensure old alt settings can be re-instated */ | 935 | /* Rings saved to ensure old alt settings can be re-instated */ |
936 | struct xhci_ring **ring_cache; | 936 | struct xhci_ring **ring_cache; |
937 | int num_rings_cached; | 937 | int num_rings_cached; |
938 | /* Store xHC assigned device address */ | ||
939 | int address; | ||
940 | #define XHCI_MAX_RINGS_CACHED 31 | 938 | #define XHCI_MAX_RINGS_CACHED 31 |
941 | struct xhci_virt_ep eps[31]; | 939 | struct xhci_virt_ep eps[31]; |
942 | struct completion cmd_completion; | 940 | struct completion cmd_completion; |