patch-1.3.53 linux/arch/ppc/kernel/pci.c

Next file: linux/arch/ppc/kernel/ppc_asm.tmpl
Previous file: linux/arch/ppc/kernel/misc.S
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v1.3.52/linux/arch/ppc/kernel/pci.c linux/arch/ppc/kernel/pci.c
@@ -90,7 +90,7 @@
 #endif	
 	if ((bus != 0) || (dev < 11) || (dev > 16))
 	{
-		*val = 0xFFFFFFFF;
+		*val =(unsigned short) 0xFFFFFFFF;
 		return PCIBIOS_DEVICE_NOT_FOUND;
 	} else
 	{
@@ -119,7 +119,7 @@
 #endif		
 	if ((bus != 0) || (dev < 11) || (dev > 16))
 	{
-		*val = 0xFFFFFFFF;
+		*val = (unsigned char) 0xFFFFFFFF;
 		return PCIBIOS_DEVICE_NOT_FOUND;
 	} else
 	{
@@ -207,7 +207,7 @@
 		     unsigned short index, unsigned char *bus,
 		     unsigned char *dev)
 {
-	unsigned long w, desired = (device_id << 16) | vendor;
+	unsigned int w, desired = (device_id << 16) | vendor;
 	int devnr;
 
 	if (vendor == 0xffff) {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this