Skip to contentSkip to conversation

pm3fb and kaweth missing casts

PATCH New O.Sezer 1 participant 1 message Aug 13, 2004

Subsystems (2)
lore
Share & tools
lore

O.Sezer

author
#0 lore raw

PATCH 1/1 pm3fb and kaweth missing casts

$SUBJECT

drivers/usb/kaweth.c +1 -1
@@ -735,7 +735,7 @@
 		}
 	}
 
-	private_header = __skb_push(skb, 2);
+	private_header = (u16 *)__skb_push(skb, 2);
 	*private_header = cpu_to_le16(skb->len-2);
 	kaweth->tx_skb = skb;
 
drivers/video/pm3fb.c +3 -5
@@ -3838,11 +3838,9 @@
 				    (unsigned char *) -1) {
 					pm3fb_unmapIO(l_fb_info);
 #if (defined KERNEL_2_4) || (defined KERNEL_2_5)
-					release_mem_region(l_fb_info->p_fb,
-							   l_fb_info->
-							   fb_size);
-					release_mem_region(l_fb_info->
-							   pIOBase,
+					release_mem_region((u_long)l_fb_info->p_fb,
+							   l_fb_info->fb_size);
+					release_mem_region((u_long)l_fb_info->pIOBase,
 							   PM3_REGS_SIZE);
 #endif /* KERNEL_2_4 or KERNEL_2_5 */
 				}