]> git.kernelconcepts.de Git - karo-tx-uboot.git/commitdiff
Fix compiler warnings in cpu/ppc4xx/usbdev.c
authorWolfgang Denk <wd@pollux.denx.de>
Fri, 5 Aug 2005 22:11:50 +0000 (00:11 +0200)
committerWolfgang Denk <wd@pollux.denx.de>
Fri, 5 Aug 2005 22:11:50 +0000 (00:11 +0200)
Patch by Steven Blakeslee, 04 Aug 2005

CHANGELOG
cpu/ppc4xx/usbdev.c

index 6c2cdcfd5901943e999a100eb15e817f83757d43..b49b1af14237e10c01a510f63968e496611c30ec 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -2,6 +2,9 @@
 Changes for U-Boot 1.1.3:
 ======================================================================
 
+* Fix compiler warnings in cpu/ppc4xx/usbdev.c
+  Patch by Steven Blakeslee, 04 Aug 2005
+
 * Add support for AMCC Bamboo PPC440EP eval board
   Patch by Stefan Roese, 04 Aug 2005
 
index f0901ac518d97229e1eefc2739071e5c26bc76f3..4741f73197bca4c934050e22f0ff203e639eeedd 100644 (file)
@@ -15,7 +15,7 @@
 #define USB_DT_INTERFACE     0x04
 #define USB_DT_ENDPOINT      0x05
 
-unsigned char set_value = -1;
+int set_value = -1;
 
 void process_endpoints(unsigned short usb2d0_intrin)
 {
@@ -25,7 +25,7 @@ void process_endpoints(unsigned short usb2d0_intrin)
        struct usb_string_descriptor usb_string_packet;
        struct devrequest setup_packet;
        unsigned int *setup_packet_pt;
-       unsigned char *packet_pt;
+       unsigned char *packet_pt = NULL;
        int temp, temp1;
 
        int i;
@@ -35,7 +35,7 @@ void process_endpoints(unsigned short usb2d0_intrin)
        /*set usb address, seems to not work unless it is done in the next
           interrupt, so that is why it is done this way */
        if (set_value != -1)
-               *(unsigned char *)USB2D0_FADDR_8 = set_value;
+               *(unsigned char *)USB2D0_FADDR_8 = (unsigned char)set_value;
 
        /*endpoint 1 */
        if (usb2d0_intrin & 0x01) {