Changeset 3126
- Timestamp:
- 10/18/05 08:07:39 (8 years ago)
- Location:
- lm-sensors/trunk/kernel/busses
- Files:
-
- 3 modified
-
i2c-amd8111.c (modified) (1 diff)
-
i2c-keywest.c (modified) (1 diff)
-
i2c-nforce2.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-amd8111.c
r3125 r3126 363 363 return -1; 364 364 365 if (!(smbus = (void*)kmalloc(sizeof(struct amd_smbus), GFP_KERNEL)))365 if (!(smbus = kmalloc(sizeof(struct amd_smbus), GFP_KERNEL))) 366 366 return -1; 367 367 memset(smbus, 0, sizeof(struct amd_smbus)); -
lm-sensors/trunk/kernel/busses/i2c-keywest.c
r3085 r3126 463 463 tsize = sizeof(struct keywest_iface) + 464 464 (sizeof(struct keywest_chan) + 4) * nchan; 465 iface = (struct keywest_iface *)kmalloc(tsize, GFP_KERNEL);465 iface = kmalloc(tsize, GFP_KERNEL); 466 466 if (iface == NULL) { 467 467 printk(KERN_ERR "i2c-keywest: can't allocate inteface !\n"); -
lm-sensors/trunk/kernel/busses/i2c-nforce2.c
r3072 r3126 349 349 350 350 /* we support 2 SMBus adapters */ 351 if (!(smbuses = (void *)kmalloc(2*sizeof(struct nforce2_smbus), 352 GFP_KERNEL))) 351 if (!(smbuses = kmalloc(2*sizeof(struct nforce2_smbus), GFP_KERNEL))) 353 352 return -ENOMEM; 354 353 memset (smbuses, 0, 2*sizeof(struct nforce2_smbus));
