diff options
author | David Howells <dhowells@redhat.com> | 2006-12-05 09:37:56 -0500 |
---|---|---|
committer | David Howells <dhowells@warthog.cambridge.redhat.com> | 2006-12-05 09:37:56 -0500 |
commit | 4c1ac1b49122b805adfa4efc620592f68dccf5db (patch) | |
tree | 87557f4bc2fd4fe65b7570489c2f610c45c0adcd /drivers/usb/misc/ftdi-elan.c | |
parent | c4028958b6ecad064b1a6303a6a5906d4fe48d73 (diff) | |
parent | d916faace3efc0bf19fe9a615a1ab8fa1a24cd93 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Conflicts:
drivers/infiniband/core/iwcm.c
drivers/net/chelsio/cxgb2.c
drivers/net/wireless/bcm43xx/bcm43xx_main.c
drivers/net/wireless/prism54/islpci_eth.c
drivers/usb/core/hub.h
drivers/usb/input/hid-core.c
net/core/netpoll.c
Fix up merge failures with Linus's head and fix new compilation failures.
Signed-Off-By: David Howells <dhowells@redhat.com>
Diffstat (limited to 'drivers/usb/misc/ftdi-elan.c')
-rw-r--r-- | drivers/usb/misc/ftdi-elan.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/drivers/usb/misc/ftdi-elan.c b/drivers/usb/misc/ftdi-elan.c index e4e2cf2ba915..18b1925032a8 100644 --- a/drivers/usb/misc/ftdi-elan.c +++ b/drivers/usb/misc/ftdi-elan.c | |||
@@ -272,7 +272,7 @@ void ftdi_elan_gone_away(struct platform_device *pdev) | |||
272 | 272 | ||
273 | 273 | ||
274 | EXPORT_SYMBOL_GPL(ftdi_elan_gone_away); | 274 | EXPORT_SYMBOL_GPL(ftdi_elan_gone_away); |
275 | void ftdi_release_platform_dev(struct device *dev) | 275 | static void ftdi_release_platform_dev(struct device *dev) |
276 | { | 276 | { |
277 | dev->parent = NULL; | 277 | dev->parent = NULL; |
278 | } | 278 | } |
@@ -1399,14 +1399,6 @@ static int ftdi_elan_read_reg(struct usb_ftdi *ftdi, u32 *data) | |||
1399 | } | 1399 | } |
1400 | } | 1400 | } |
1401 | 1401 | ||
1402 | int usb_ftdi_elan_read_reg(struct platform_device *pdev, u32 *data) | ||
1403 | { | ||
1404 | struct usb_ftdi *ftdi = platform_device_to_usb_ftdi(pdev); | ||
1405 | return ftdi_elan_read_reg(ftdi, data); | ||
1406 | } | ||
1407 | |||
1408 | |||
1409 | EXPORT_SYMBOL_GPL(usb_ftdi_elan_read_reg); | ||
1410 | static int ftdi_elan_read_config(struct usb_ftdi *ftdi, int config_offset, | 1402 | static int ftdi_elan_read_config(struct usb_ftdi *ftdi, int config_offset, |
1411 | u8 width, u32 *data) | 1403 | u8 width, u32 *data) |
1412 | { | 1404 | { |
@@ -2606,10 +2598,7 @@ static int ftdi_elan_probe(struct usb_interface *interface, | |||
2606 | for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { | 2598 | for (i = 0; i < iface_desc->desc.bNumEndpoints; ++i) { |
2607 | endpoint = &iface_desc->endpoint[i].desc; | 2599 | endpoint = &iface_desc->endpoint[i].desc; |
2608 | if (!ftdi->bulk_in_endpointAddr && | 2600 | if (!ftdi->bulk_in_endpointAddr && |
2609 | ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK) | 2601 | usb_endpoint_is_bulk_in(endpoint)) { |
2610 | == USB_DIR_IN) && ((endpoint->bmAttributes & | ||
2611 | USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_BULK)) | ||
2612 | { | ||
2613 | buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); | 2602 | buffer_size = le16_to_cpu(endpoint->wMaxPacketSize); |
2614 | ftdi->bulk_in_size = buffer_size; | 2603 | ftdi->bulk_in_size = buffer_size; |
2615 | ftdi->bulk_in_endpointAddr = endpoint->bEndpointAddress; | 2604 | ftdi->bulk_in_endpointAddr = endpoint->bEndpointAddress; |
@@ -2622,10 +2611,7 @@ static int ftdi_elan_probe(struct usb_interface *interface, | |||
2622 | } | 2611 | } |
2623 | } | 2612 | } |
2624 | if (!ftdi->bulk_out_endpointAddr && | 2613 | if (!ftdi->bulk_out_endpointAddr && |
2625 | ((endpoint->bEndpointAddress & USB_ENDPOINT_DIR_MASK) | 2614 | usb_endpoint_is_bulk_out(endpoint)) { |
2626 | == USB_DIR_OUT) && ((endpoint->bmAttributes & | ||
2627 | USB_ENDPOINT_XFERTYPE_MASK) == USB_ENDPOINT_XFER_BULK)) | ||
2628 | { | ||
2629 | ftdi->bulk_out_endpointAddr = | 2615 | ftdi->bulk_out_endpointAddr = |
2630 | endpoint->bEndpointAddress; | 2616 | endpoint->bEndpointAddress; |
2631 | } | 2617 | } |