summaryrefslogtreecommitdiff
path: root/hw/xfree86/i2c/uda1380.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/xfree86/i2c/uda1380.c')
-rw-r--r--hw/xfree86/i2c/uda1380.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/hw/xfree86/i2c/uda1380.c b/hw/xfree86/i2c/uda1380.c
index defda3cdc..c7b1cda66 100644
--- a/hw/xfree86/i2c/uda1380.c
+++ b/hw/xfree86/i2c/uda1380.c
@@ -36,7 +36,7 @@ UDA1380Ptr Detect_uda1380(I2CBusPtr b, I2CSlaveAddr addr)
UDA1380Ptr t;
I2CByte a;
- t = xcalloc(1, sizeof(UDA1380Rec));
+ t = calloc(1, sizeof(UDA1380Rec));
if(t == NULL) return NULL;
switch(addr)
{
@@ -58,14 +58,14 @@ UDA1380Ptr Detect_uda1380(I2CBusPtr b, I2CSlaveAddr addr)
if(!I2C_WriteRead(&(t->d), NULL, 0, &a, 1))
{
- xfree(t);
+ free(t);
return NULL;
}
/* set default parameters */
if(!I2CDevInit(&(t->d)))
{
- xfree(t);
+ free(t);
return NULL;
}