aboutsummaryrefslogtreecommitdiffhomepage
path: root/vidix/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'vidix/drivers')
-rw-r--r--vidix/drivers/nvidia_vid.c2
-rw-r--r--vidix/drivers/savage_vid.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/vidix/drivers/nvidia_vid.c b/vidix/drivers/nvidia_vid.c
index 710336098e..dd887dd07f 100644
--- a/vidix/drivers/nvidia_vid.c
+++ b/vidix/drivers/nvidia_vid.c
@@ -704,7 +704,7 @@ static rivatv_info* info;
int vixInit(void){
int mtrr;
- info = (rivatv_info*)calloc(1,sizeof(rivatv_info));
+ info = calloc(1,sizeof(rivatv_info));
info->control_base = map_phys_mem(pci_info.base0, 0x00C00000 + 0x00008000);
info->chip.arch = nvidia_card_ids[find_chip(pci_info.device)].arch;
printf("[nvidia_vid] arch %x register base %p\n",info->chip.arch,info->control_base);
diff --git a/vidix/drivers/savage_vid.c b/vidix/drivers/savage_vid.c
index 2165230cb1..219a4f595e 100644
--- a/vidix/drivers/savage_vid.c
+++ b/vidix/drivers/savage_vid.c
@@ -873,7 +873,7 @@ vixInit (void)
fprintf(stderr, "vixInit enter \n");
// //getc(stdin);
- info = (savage_info*)calloc(1,sizeof(savage_info));
+ info = calloc(1,sizeof(savage_info));
/* need this if we want direct outb and inb access? */