diff options
author | Marek Belisko <marek.belisko@open-nandra.com> | 2011-02-03 05:07:39 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-02-04 15:43:40 -0500 |
commit | 165d290f8a315b8af950aa15b23665c7950f8843 (patch) | |
tree | 0a383abd44738511a9c4fdb3edf475b83b19ccae /drivers/staging/ft1000 | |
parent | 4f69cef0a978e8efc2b2a5c0666bb59f39426685 (diff) |
staging: ft1000: Remove dead code.
Remove code which was under #if 0.
Signed-off-by: Marek Belisko <marek.belisko@open-nandra.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/ft1000')
-rw-r--r-- | drivers/staging/ft1000/ft1000-usb/ft1000_download.c | 63 |
1 files changed, 1 insertions, 62 deletions
diff --git a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c index 17546d8ec08..0ee80b58a97 100644 --- a/drivers/staging/ft1000/ft1000-usb/ft1000_download.c +++ b/drivers/staging/ft1000/ft1000-usb/ft1000_download.c | |||
@@ -168,18 +168,6 @@ static u32 check_usb_db (struct ft1000_device *ft1000dev) | |||
168 | DEBUG("check_usb_db: door bell is cleared, return 0\n"); | 168 | DEBUG("check_usb_db: door bell is cleared, return 0\n"); |
169 | return 0; | 169 | return 0; |
170 | } | 170 | } |
171 | #if 0 | ||
172 | // Check if Card is present | ||
173 | status = ft1000_read_register (ft1000dev, &temp, FT1000_REG_SUP_IMASK); | ||
174 | if (temp == 0x0000) { | ||
175 | break; | ||
176 | } | ||
177 | |||
178 | status = ft1000_read_register (ft1000dev, &temp, FT1000_REG_ASIC_ID); | ||
179 | if (temp == 0xffff) { | ||
180 | break; | ||
181 | } | ||
182 | #endif | ||
183 | } | 171 | } |
184 | 172 | ||
185 | return HANDSHAKE_MAG_TIMEOUT_VALUE; | 173 | return HANDSHAKE_MAG_TIMEOUT_VALUE; |
@@ -446,34 +434,6 @@ static long get_request_value(struct ft1000_device *ft1000dev) | |||
446 | 434 | ||
447 | } | 435 | } |
448 | 436 | ||
449 | #if 0 | ||
450 | static long get_request_value_usb(struct ft1000_device *ft1000dev) | ||
451 | { | ||
452 | u32 value; | ||
453 | u16 tempword; | ||
454 | u32 status; | ||
455 | struct ft1000_info * pft1000info = netdev_priv(ft1000dev->net); | ||
456 | |||
457 | if (pft1000info->usbboot == 2) { | ||
458 | value = pft1000info->tempbuf[4]; | ||
459 | tempword = pft1000info->tempbuf[5]; | ||
460 | } | ||
461 | else { | ||
462 | value = 0; | ||
463 | status = ft1000_read_dpram16(ft1000dev, DWNLD_MAG1_SIZE_LOC, (u8 *)&tempword, 1); | ||
464 | } | ||
465 | |||
466 | value |= (tempword << 16); | ||
467 | value = ntohl(value); | ||
468 | |||
469 | if (pft1000info->usbboot == 1) | ||
470 | pft1000info->usbboot = 2; | ||
471 | |||
472 | //DEBUG("get_request_value_usb: value is %x\n", value); | ||
473 | return value; | ||
474 | |||
475 | } | ||
476 | #endif | ||
477 | 437 | ||
478 | //--------------------------------------------------------------------------- | 438 | //--------------------------------------------------------------------------- |
479 | // Function: put_request_value | 439 | // Function: put_request_value |
@@ -723,22 +683,7 @@ static u32 write_blk_fifo (struct ft1000_device *ft1000dev, u16 **pUsFile, u8 ** | |||
723 | if (byte_length < 64) | 683 | if (byte_length < 64) |
724 | byte_length = 68; | 684 | byte_length = 68; |
725 | 685 | ||
726 | #if 0 | ||
727 | pblk = kzalloc(byte_length, GFP_KERNEL); | ||
728 | memcpy (pblk, *pUcFile, byte_length); | ||
729 | |||
730 | pipe = usb_sndbulkpipe (ft1000dev->dev, ft1000dev->bulk_out_endpointAddr); | ||
731 | 686 | ||
732 | Status = usb_bulk_msg (ft1000dev->dev, | ||
733 | pipe, | ||
734 | pblk, | ||
735 | byte_length, | ||
736 | &cnt, | ||
737 | 10); | ||
738 | DEBUG("write_blk_fifo Status = 0x%8x Bytes Transfer = %d Data = 0x%x\n", Status, cnt, *pblk); | ||
739 | |||
740 | kfree(pblk); | ||
741 | #else | ||
742 | usb_init_urb(ft1000dev->tx_urb); | 687 | usb_init_urb(ft1000dev->tx_urb); |
743 | memcpy (ft1000dev->tx_buf, *pUcFile, byte_length); | 688 | memcpy (ft1000dev->tx_buf, *pUcFile, byte_length); |
744 | usb_fill_bulk_urb(ft1000dev->tx_urb, | 689 | usb_fill_bulk_urb(ft1000dev->tx_urb, |
@@ -750,7 +695,6 @@ static u32 write_blk_fifo (struct ft1000_device *ft1000dev, u16 **pUsFile, u8 ** | |||
750 | (void*)ft1000dev); | 695 | (void*)ft1000dev); |
751 | 696 | ||
752 | usb_submit_urb(ft1000dev->tx_urb, GFP_ATOMIC); | 697 | usb_submit_urb(ft1000dev->tx_urb, GFP_ATOMIC); |
753 | #endif | ||
754 | 698 | ||
755 | *pUsFile = *pUsFile + (word_length << 1); | 699 | *pUsFile = *pUsFile + (word_length << 1); |
756 | *pUcFile = *pUcFile + (word_length << 2); | 700 | *pUcFile = *pUcFile + (word_length << 2); |
@@ -1000,15 +944,10 @@ u16 scram_dnldr(struct ft1000_device *ft1000dev, void *pFileStart, u32 FileLeng | |||
1000 | status = STATUS_FAILURE; | 944 | status = STATUS_FAILURE; |
1001 | break; | 945 | break; |
1002 | } | 946 | } |
1003 | #if 0 | 947 | |
1004 | word_length = get_request_value_usb(ft1000dev); | ||
1005 | //DEBUG("FT1000:download:word_length = %d\n", (int)word_length); | ||
1006 | if (word_length > MAX_LENGTH/2) | ||
1007 | #else | ||
1008 | word_length = get_request_value(ft1000dev); | 948 | word_length = get_request_value(ft1000dev); |
1009 | //DEBUG("FT1000:download:word_length = %d\n", (int)word_length); | 949 | //DEBUG("FT1000:download:word_length = %d\n", (int)word_length); |
1010 | if (word_length > MAX_LENGTH) | 950 | if (word_length > MAX_LENGTH) |
1011 | #endif | ||
1012 | { | 951 | { |
1013 | DEBUG("FT1000:download:Download error: Max length exceeded\n"); | 952 | DEBUG("FT1000:download:Download error: Max length exceeded\n"); |
1014 | status = STATUS_FAILURE; | 953 | status = STATUS_FAILURE; |