diff options
author | Sergei Shtylyov <sergei.shtylyov@cogentembedded.com> | 2015-01-18 17:44:12 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-25 08:01:13 -0500 |
commit | dd709764dcb3fcb6776a33b999296e534777ec59 (patch) | |
tree | 68c6a97ff7bf78dc09f8aba1626e032acfda83f7 | |
parent | db42a4c9a053e12f408fa13d5475180f33a4bc0b (diff) |
ohci-s3c2410: use HUB_CHAR_*
Fix using the bare numbers to set the 'wHubCharacteristics' field of the Hub
Descriptor while the values are #define'd in <linux/usb/ch11.h>.
While at it, stop setting already set HUB_CHAR_INDV_PORT_LPSM once again.
Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/host/ohci-s3c2410.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/usb/host/ohci-s3c2410.c b/drivers/usb/host/ohci-s3c2410.c index 095113ea1fcb..7a1919ca543a 100644 --- a/drivers/usb/host/ohci-s3c2410.c +++ b/drivers/usb/host/ohci-s3c2410.c | |||
@@ -249,14 +249,14 @@ static int ohci_s3c2410_hub_control( | |||
249 | */ | 249 | */ |
250 | 250 | ||
251 | desc->wHubCharacteristics &= ~cpu_to_le16(HUB_CHAR_LPSM); | 251 | desc->wHubCharacteristics &= ~cpu_to_le16(HUB_CHAR_LPSM); |
252 | desc->wHubCharacteristics |= cpu_to_le16(0x0001); | 252 | desc->wHubCharacteristics |= cpu_to_le16( |
253 | HUB_CHAR_INDV_PORT_LPSM); | ||
253 | 254 | ||
254 | if (info->enable_oc) { | 255 | if (info->enable_oc) { |
255 | desc->wHubCharacteristics &= ~cpu_to_le16( | 256 | desc->wHubCharacteristics &= ~cpu_to_le16( |
256 | HUB_CHAR_OCPM); | 257 | HUB_CHAR_OCPM); |
257 | desc->wHubCharacteristics |= cpu_to_le16( | 258 | desc->wHubCharacteristics |= cpu_to_le16( |
258 | 0x0008 | | 259 | HUB_CHAR_INDV_PORT_OCPM); |
259 | 0x0001); | ||
260 | } | 260 | } |
261 | 261 | ||
262 | dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", | 262 | dev_dbg(hcd->self.controller, "wHubCharacteristics after 0x%04x\n", |